diff --git a/docs/changelog.rst b/docs/changelog.rst index 151136b1c..420ef3727 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -54,6 +54,8 @@ Detailed list of changes - Fix a regression in the previous release that caused `kitten @ send-text` with a match tab parameter to send text twice to the active window (:iss:`7027`) +- Fix a regression in the previous release that caused overriding of existing multi-key mappings to fail (:iss:`7044`) + - Wayland+NVIDIA: Do not request an sRGB output buffer as a bug in Wayland causes kitty to not start (:iss:`7021`) 0.32.0 [2024-01-19] diff --git a/kitty/config.py b/kitty/config.py index 67ad73f5a..ba531baa8 100644 --- a/kitty/config.py +++ b/kitty/config.py @@ -118,7 +118,10 @@ def finalize_keys(opts: Options, accumulate_bad_lines: Optional[List[BadLine]] = dl = defn.definition_location accumulate_bad_lines.append(BadLine(dl.number, dl.line, KeyError(kerr), dl.file)) continue - m.keymap[defn.trigger].append(defn) + items = m.keymap[defn.trigger] + if defn.is_sequence: + items = m.keymap[defn.trigger] = [kd for kd in items if defn.rest != kd.rest or defn.options.when_focus_on != kd.options.when_focus_on] + items.append(defn) opts.keyboard_modes = modes