aboutsummaryrefslogtreecommitdiffstats
path: root/config/binds.go
diff options
context:
space:
mode:
authorVitaly Ovchinnikov <v@postbox.nz>2023-09-12 13:36:06 +0000
committerRobin Jarry <robin@jarry.cc>2023-09-19 01:16:52 +0200
commitb17e8aed7c36f5f5ffc3c490704df78694477370 (patch)
tree7197402e1d37e9f7b67ba2026b9d945f36dcbc37 /config/binds.go
parent65db1c6513d655aec2ab1345fb68ba0349dfc79f (diff)
downloadaerc-b17e8aed7c36f5f5ffc3c490704df78694477370.tar.gz
binds: control and alt modifiers for delete
Add Control and Alt modifiers to Delete key, so C-Delete and A-Delete kebyoard shortcuts could be bound. Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/binds.go')
-rw-r--r--config/binds.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/binds.go b/config/binds.go
index 99c4df34..78f68eb4 100644
--- a/config/binds.go
+++ b/config/binds.go
@@ -443,6 +443,8 @@ var keyNames = map[string]KeyStroke{
"end": {tcell.ModNone, tcell.KeyEnd, 0},
"insert": {tcell.ModNone, tcell.KeyInsert, 0},
"delete": {tcell.ModNone, tcell.KeyDelete, 0},
+ "c-delete": {tcell.ModCtrl, tcell.KeyDelete, 0},
+ "a-delete": {tcell.ModAlt, tcell.KeyDelete, 0},
"backspace": {tcell.ModNone, tcell.KeyBackspace2, 0},
"help": {tcell.ModNone, tcell.KeyHelp, 0},
"exit": {tcell.ModNone, tcell.KeyExit, 0},