mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
Make shift-backspace do the same as backspace in editors
This can be useful when typing an all-caps word; if you mistype one letter, you can delete it without having to let go of shift.
This commit is contained in:
@@ -41,6 +41,7 @@ func SimpleEditor(v *View, key Key) bool {
|
||||
key.Equals(NewKeyStrMod("d", ModAlt)):
|
||||
v.TextArea.ForwardDeleteWord()
|
||||
case key.Equals(NewKeyName(KeyBackspace)),
|
||||
key.Equals(NewKey(KeyBackspace, "", ModShift)),
|
||||
key.Equals(NewKeyStrMod("h", ModCtrl)):
|
||||
v.TextArea.BackSpaceChar()
|
||||
case key.Equals(NewKeyStrMod("d", ModCtrl)),
|
||||
|
||||
Reference in New Issue
Block a user