term: fix ALT-Escape

This appears to have been accidentally broken as part of the churn
around building out CSI-u key encoding in
6289c08a4e

closes: https://github.com/wez/wezterm/issues/338
This commit is contained in:
Wez Furlong committed 2020-11-23 14:20:43 -08:00
1 parent a063d20cf0
commit eabfa3c0f8
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ brief notes about them may accumulate here.
* Added `SemanticZone` as a possible parameter for [SelectTextAtMouseCursor](config/lua/keyassignment/SelectTextAtMouseCursor.md), making it possible to conveniently select complete input or output regions.
* Improved font rendering [#320](https://github.com/wez/wezterm/issues/320) [#331](https://github.com/wez/wezterm/issues/331)
* Updated internal harfbuzz shaper to 2.7.2
* Fixed ALT-Escape not sending ESC-ESC [#338](https://github.com/wez/wezterm/issues/338)
### 20201101-103216-403d002d
+1 -1
View File
@@ -821,7 +821,7 @@ impl TerminalState {
if mods.contains(KeyModifiers::SHIFT) || mods.contains(KeyModifiers::CTRL) {
self.csi_u_encode(&mut buf, c, mods)?;
} else {
if mods.contains(KeyModifiers::ALT) && key != Escape {
if mods.contains(KeyModifiers::ALT) {
buf.push(0x1b as char);
}
buf.push(c);