From acd016cdd4d8e163850a013c63e7ff4d7d78e015 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 28 May 2020 19:53:01 -0700 Subject: [PATCH] wezterm: send_composed_key_when_alt_is_pressed now defaults true This should make our behavior more consistent with other terminal emulators on macOS. closes https://github.com/wez/wezterm/issues/158 --- docs/changelog.markdown | 7 +++++++ src/config/mod.rs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/changelog.markdown b/docs/changelog.markdown index bd1a8605b..d6e0cf209 100644 --- a/docs/changelog.markdown +++ b/docs/changelog.markdown @@ -25,6 +25,13 @@ brief notes about them may accumulate here. paste) to enter a search pattern and highlight matches. Pressing Enter (or CTRL-P) advances to an earlier match, CTRL-N to a later match. Escape cancels the search overlay. +* Fixed an issue where ALT+number would send the wrong output for European + keyboard layouts on macOS and Linux. As part of this the default behavior + has changed: we used to force ALT+number to produce ALT+number instead of + the composed key for that layout. We now emit the composed key by default. + You can switch to the old behavior either by explicitly binding those keys + or by setting `send_composed_key_when_alt_is_pressed = false` in your + configuration file. ### 20200517-122836-92c201c6 diff --git a/src/config/mod.rs b/src/config/mod.rs index 4bd7b8708..faea0af20 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -424,10 +424,10 @@ pub struct Config { pub daemon_options: DaemonOptions, /// If set to true, send the system specific composed key when - /// the ALT key is held down. If set to false (the default) + /// the ALT key is held down. If set to false /// then send the key with the ALT modifier (this is typically /// encoded as ESC followed by the key). - #[serde(default)] + #[serde(default = "default_true")] pub send_composed_key_when_alt_is_pressed: bool, /// If true, the `Backspace` and `Delete` keys generate `Delete` and `Backspace`