Skip to content
Snippets Groups Projects
Commit 4913bed7 authored by George Nachman's avatar George Nachman
Browse files

Add support for using the numeric keypad to change tabs with cmd-number. Issue 5904.

parent af4dc83e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -112,22 +112,31 @@
if ([iTermAdvancedSettingsModel useVirtualKeyCodesForDetectingDigits]) {
switch (event.keyCode) {
case kVK_ANSI_1:
case kVK_ANSI_Keypad1:
return 1;
case kVK_ANSI_2:
case kVK_ANSI_Keypad2:
return 2;
case kVK_ANSI_3:
case kVK_ANSI_Keypad3:
return 3;
case kVK_ANSI_4:
case kVK_ANSI_Keypad4:
return 4;
case kVK_ANSI_5:
case kVK_ANSI_Keypad5:
return 5;
case kVK_ANSI_6:
case kVK_ANSI_Keypad6:
return 6;
case kVK_ANSI_7:
case kVK_ANSI_Keypad7:
return 7;
case kVK_ANSI_8:
case kVK_ANSI_Keypad8:
return 8;
case kVK_ANSI_9:
case kVK_ANSI_Keypad9:
return 9;
}
return -1;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment