mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Merge pull request #1274 from zed-industries/fix-enter-numpad
Support hitting enter on numpad
This commit is contained in:
commit
582185b8cb
1 changed files with 2 additions and 1 deletions
|
@ -248,6 +248,7 @@ unsafe fn get_key_text(
|
|||
use cocoa::appkit::*;
|
||||
const BACKSPACE_KEY: u16 = 0x7f;
|
||||
const ENTER_KEY: u16 = 0x0d;
|
||||
const NUMPAD_ENTER_KEY: u16 = 0x03;
|
||||
const ESCAPE_KEY: u16 = 0x1b;
|
||||
const TAB_KEY: u16 = 0x09;
|
||||
const SHIFT_TAB_KEY: u16 = 0x19;
|
||||
|
@ -260,7 +261,7 @@ unsafe fn get_key_text(
|
|||
"space"
|
||||
}
|
||||
BACKSPACE_KEY => "backspace",
|
||||
ENTER_KEY => "enter",
|
||||
ENTER_KEY | NUMPAD_ENTER_KEY => "enter",
|
||||
ESCAPE_KEY => "escape",
|
||||
TAB_KEY => "tab",
|
||||
SHIFT_TAB_KEY => "tab",
|
||||
|
|
Loading…
Reference in a new issue