1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00

macos: fix numpad enter key reporting

refs: https://github.com/wez/wezterm/issues/739
This commit is contained in:
Wez Furlong 2021-04-27 07:38:19 -07:00
parent e9fcc98d4a
commit 45262c3091
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@ As features stabilize some brief notes about them will accumulate here.
* New: [wezterm.column_width](config/lua/wezterm/column_width.md) function for measuring the displayed width of a string
* New: [wezterm.truncate_to_width](config/lua/wezterm/truncate_to_width.md) and [wezterm.truncate_left_to_width](config/lua/wezterm/truncate_left_to_width.md) function for truncating/padding a string based on its displayed width
* Updated bundled `Noto Color Emoji` font to version 2.020 with unicode 13.1 support. Thanks to [@4cm4k1](https://github.com/4cm4k1)! [#742](https://github.com/wez/wezterm/pull/742)
* Fixed: Numpad Enter reported as CTRL-C on macOS [#739](https://github.com/wez/wezterm/issues/739)
### 20210405-110924-a5bb5be8

View File

@ -1664,6 +1664,11 @@ impl WindowView {
"\t"
} else if !use_ime && virtual_key == super::keycodes::kVK_Delete {
"\x08"
} else if virtual_key == super::keycodes::kVK_ANSI_KeypadEnter {
// https://github.com/wez/wezterm/issues/739
// Keypad enter sends ctrl-c for some reason; explicitly
// treat that as enter here.
"\r"
} else {
unmod
};