From 3d82e5aff8a4d544649224b5e1774c8b932fc7e4 Mon Sep 17 00:00:00 2001 From: specv <61646426+specv@users.noreply.github.com> Date: Tue, 17 May 2022 00:33:29 +0800 Subject: [PATCH] Fix `alacritty`: inline input method & backspace [macOS: unexpected characters get deleted when using backspace in Pinyin input method](https://github.com/alacritty/alacritty/issues/1606) --- nixpkgs/home.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixpkgs/home.nix b/nixpkgs/home.nix index 82a2e42..13583ee 100644 --- a/nixpkgs/home.nix +++ b/nixpkgs/home.nix @@ -664,6 +664,14 @@ in # see also: # https://github.com/alacritty/alacritty/issues/62 key_bindings = [ + # workaround for inline input method, remove this after https://github.com/alacritty/alacritty/pull/5790 merged + # see also: [macOS: unexpected characters get deleted when using backspace in Pinyin input method](https://github.com/alacritty/alacritty/issues/1606#issuecomment-579754834) + { + key = "Back"; + action = "ReceiveChar"; + } + # emacs readline key bindings + # see also: [Allow remapping modifier keys in the config](https://github.com/alacritty/alacritty/issues/62#issuecomment-347552058) { key = "F"; mods = "Alt";