protected override bool OnKeyPressEvent(EventKey evnt) { Gdk.Key key; Gdk.ModifierType mod; KeyBindingManager.MapRawKeys(evnt, out key, out mod); switch (key) { case Gdk.Key.Left: LeftItem(); break; case Gdk.Key.Right: RightItem(); break; case Gdk.Key.Up: PrevItem(); break; case Gdk.Key.Down: NextItem(); break; case Gdk.Key.Tab: if ((mod & ModifierType.ShiftMask) == 0) { NextItem(); } else { PrevItem(); } break; } return(base.OnKeyPressEvent(evnt)); }
//FIXME: get ctrl(-shift)-tab keybindings from the Switch(Next|Previous)Document commands? protected override bool OnKeyPressEvent(Gdk.EventKey evnt) { Gdk.Key key; Gdk.ModifierType mod; KeyBindingManager.MapRawKeys(evnt, out key, out mod); switch (key) { case Gdk.Key.Left: SwitchToPad(); break; case Gdk.Key.Right: SwitchToDocument(); break; case Gdk.Key.Up: Previous(); break; case Gdk.Key.Down: Next(); break; case Gdk.Key.Tab: if ((mod & ModifierType.ShiftMask) == 0) { Next(); } else { Previous(); } break; } return(true); }