mirror of
https://github.com/wez/wezterm.git
synced 2024-12-27 15:37:29 +03:00
e680cc848a
There are certain key combinations that macOS prefers to handle without giving the application much opportunity to process them. CTRL-ESC and CMD-. both cause doCommandBySelector(cancel:) to be called. The former we had already special cased but since we can't disambiguate the two things, we need a better way. performKeyEquivalent: is a method we can implement to have an opportunity to "do something" and prevent the default macOS behavior. So we implement that. What's interesting is that saying that we handled CMD-. results in no further processing at all by macOS, whereas saying that we handled CTRL-ESC results in macOS doing the normal key event dispatch. So we need to route that event for ourselves in that one case. Doesn't feel great! refs: https://github.com/wez/wezterm/issues/1867 |
||
---|---|---|
.. | ||
examples | ||
src | ||
build.rs | ||
Cargo.toml |