Use 1 rather than 0 as the keycode for the special mouse click key in fish

zero is used for key events from the wayland text input system that have
only text and no associated key
This commit is contained in:
Kovid Goyal
2024-04-05 13:01:58 +05:30
parent 0198b7fa5a
commit 676c426e87
2 changed files with 3 additions and 3 deletions

View File

@@ -99,8 +99,8 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
set suffix '-passive'
end
for mode in (bind --list-modes | string match -v paste) # bind in all modes except paste
bind --preset -M "$mode" \e\[0u "forward-char$suffix"
bind --preset -M "$mode" \e\[0\;1u "backward-char$suffix"
bind --preset -M "$mode" \e\[1u "forward-char$suffix"
bind --preset -M "$mode" \e\[1\;1u "backward-char$suffix"
end
end