Permalink
Browse files

Window cycling hardcoded to keycode 50

Window cycling is hardcoded to happen when the Cmd key is pressed with
the key whose keycode = 50.  Having window cycling in the "Window" menu
means that window cycling stops working when the keyboard layout is
changed.  Thus revert back to the old way of dealing with this since it
seems to work better.
  • Loading branch information...
1 parent bf70f82 commit 428d1b4412fd0df8f021699f8ca16f2f1de89848 @b4winckler committed Jun 8, 2008
Binary file not shown.
@@ -406,6 +406,12 @@ - (BOOL)performKeyEquivalent:(NSEvent *)event
&& !(116 == [event keyCode] || 121 == [event keyCode]))
return NO;
+ // HACK! KeyCode 50 represent the key which switches between windows
+ // within an application (like Cmd+Tab is used to switch between
+ // applications). Return NO here, else the window switching does not work.
+ if ([event keyCode] == 50)
+ return NO;
+
// HACK! Let the main menu try to handle any key down event, before
// passing it on to vim, otherwise key equivalents for menus will
// effectively be disabled.
View
@@ -640,6 +640,12 @@ - (BOOL)performKeyEquivalent:(NSEvent *)event
&& !(116 == [event keyCode] || 121 == [event keyCode]))
return NO;
+ // HACK! KeyCode 50 represent the key which switches between windows
+ // within an application (like Cmd+Tab is used to switch between
+ // applications). Return NO here, else the window switching does not work.
+ if ([event keyCode] == 50)
+ return NO;
+
// HACK! Let the main menu try to handle any key down event, before
// passing it on to vim, otherwise key equivalents for menus will
// effectively be disabled.
View
@@ -83,8 +83,6 @@ an <silent> 9900.301 Window.Minimize\ All <Nop>
an <silent> 9900.310 Window.Zoom <Nop>
an <silent> 9900.311 Window.Zoom\ All <Nop>
an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode :set invfullscreen<CR>
-an <silent> 9900.325 Window.Cycle\ Through\ Windows <Nop>
-an <silent> 9900.326 Window.Cycle\ Backwards\ Through\ Windows <Nop>
an 9900.330 Window.-SEP1- <Nop>
" TODO! Grey out if no tabs are visible.
an <silent> 9900.340 Window.Previous\ Tab :tabprevious<CR>
@@ -244,8 +242,6 @@ macm Window.Minimize\ All key=<D-M-m> action=miniaturizeAll: alt=YES
macm Window.Zoom key=<D-C-z> action=performZoom:
macm Window.Zoom\ All key=<D-M-C-z> action=zoomAll: alt=YES
macm Window.Toggle\ Full\ Screen\ Mode key=<D-F>
-macm Window.Cycle\ Through\ Windows key=<D-`> action=_cycleWindows:
-macm Window.Cycle\ Backwards\ Through\ Windows key=<D-S-`> action=_cycleWindowsBackwards: alt=YES
macm Window.Previous\ Tab key=<D-{>
macm Window.Next\ Tab key=<D-}>
macm Window.Bring\ All\ To\ Front action=arrangeInFront:

0 comments on commit 428d1b4

Please sign in to comment.