diff --git a/src/MacVim/Actions.plist b/src/MacVim/Actions.plist index 7df6bff739..344b0da1c6 100644 --- a/src/MacVim/Actions.plist +++ b/src/MacVim/Actions.plist @@ -2,6 +2,10 @@ + _cycleWindows: + + _cycleWindowsBackwards: + addNewTab: arrangeInFront: diff --git a/src/MacVim/MMAtsuiTextView.m b/src/MacVim/MMAtsuiTextView.m index b5bd731b69..8ed5713e4f 100644 --- a/src/MacVim/MMAtsuiTextView.m +++ b/src/MacVim/MMAtsuiTextView.m @@ -416,14 +416,6 @@ enum { if ([[NSApp mainMenu] performKeyEquivalent:event]) return YES; - // 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. - // - // Will this hack work for all languages / keyboard layouts? - if ([event keyCode] == 50) - return NO; - // HACK! On Leopard Ctrl-key events end up here instead of keyDown:. if (flags & NSControlKeyMask) { [self keyDown:event]; diff --git a/src/MacVim/MMTextView.m b/src/MacVim/MMTextView.m index 7460dbe05d..912b02151d 100644 --- a/src/MacVim/MMTextView.m +++ b/src/MacVim/MMTextView.m @@ -651,14 +651,6 @@ enum { if ([[NSApp mainMenu] performKeyEquivalent:event]) return YES; - // 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. - // - // Will this hack work for all languages / keyboard layouts? - if ([event keyCode] == 50) - return NO; - // HACK! On Leopard Ctrl-key events end up here instead of keyDown:. if (flags & NSControlKeyMask) { [self keyDown:event]; diff --git a/src/MacVim/gvimrc b/src/MacVim/gvimrc index 6b3ab099f7..baaa8bbe84 100644 --- a/src/MacVim/gvimrc +++ b/src/MacVim/gvimrc @@ -81,6 +81,8 @@ aunmenu Window an 9900.300 Window.Minimize an 9900.310 Window.Zoom an 9900.320 Window.Toggle\ Full\ Screen\ Mode :set invfullscreen +an 9900.325 Window.Cycle\ Through\ Windows +an 9900.326 Window.Cycle\ Through\ Windows\ Backwards an 9900.330 Window.-SEP1- " TODO! Grey out if no tabs are visible. an 9900.340 Window.Previous\ Tab :tabprevious @@ -238,6 +240,8 @@ macm Tools.Newer\ List key= macm Window.Minimize key= action=performMiniaturize: macm Window.Zoom key= action=performZoom: macm Window.Toggle\ Full\ Screen\ Mode key= +macm Window.Cycle\ Through\ Windows key= action=_cycleWindows: +macm Window.Cycle\ Through\ Windows\ Backwards key= action=_cycleWindowsBackwards: alt=YES macm Window.Previous\ Tab key= macm Window.Next\ Tab key= macm Window.Bring\ All\ To\ Front action=arrangeInFront: