Permalink
Browse files

add back in support for navigating the file browser using the arrow keys

  • Loading branch information...
1 parent 6904f66 commit 2df15a1812474ff94f8cf61d83ecae1f79970e04 Adam Vaughan committed Dec 27, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/MacVim/MMFileBrowserController.m
View
4 src/MacVim/MMFileBrowserController.m
@@ -396,7 +396,9 @@ - (void)keyDown:(NSEvent *)event {
[self sendSelectionChangedNotification];
}
return;
- } else if (event.keyCode != TAB_KEY_CODE && event.keyCode != ESCAPE_KEY_CODE) {
+ } else if (event.keyCode != TAB_KEY_CODE && event.keyCode != ESCAPE_KEY_CODE
+ && event.keyCode != LEFT_KEY_CODE && event.keyCode != RIGHT_KEY_CODE
+ && event.keyCode != DOWN_KEY_CODE && event.keyCode != UP_KEY_CODE) {
switch ([[event.characters uppercaseString] characterAtIndex:0]) {
case 'H':
LEFT_KEY_CHAR = [NSString stringWithFormat:@"%C", 0xf702];

0 comments on commit 2df15a1

Please sign in to comment.