fulfill the promise of an in-library Keyboard object, and use platform specific modifiers throughout libgtkmm2ext. also fix up scrolling of pixfaders by making them grab keyboard magic focus when the mouse pointer is within them

git-svn-id: svn://localhost/ardour2/branches/3.0@6344 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-12-10 23:01:45 +00:00
parent 6ab765e8fa
commit a3bcba2357
7 changed files with 60 additions and 48 deletions

View file

@ -18,8 +18,9 @@
$Id$
*/
#include <gtkmm2ext/auto_spin.h>
#include <cmath>
#include "gtkmm2ext/auto_spin.h"
#include "gtkmm2ext/keyboard.h"
using namespace Gtkmm2ext;
using namespace std;
@ -73,13 +74,13 @@ AutoSpin::button_press (GdkEventButton *ev)
stop_spinning (0);
if (ev->state & GDK_SHIFT_MASK) {
if (ev->state & Keyboard::TertiaryModifier) {
/* use page shift */
shifted = true;
}
if (ev->state & GDK_CONTROL_MASK) {
if (ev->state & Keyboard::PrimaryModifier) {
/* go to upper/lower bound on button1/button2 */
control = true;