From b17e8aed7c36f5f5ffc3c490704df78694477370 Mon Sep 17 00:00:00 2001 From: Vitaly Ovchinnikov Date: Tue, 12 Sep 2023 13:36:06 +0000 Subject: 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 Acked-by: Robin Jarry --- config/binds.go | 2 ++ doc/aerc-binds.5.scd | 4 ++++ 2 files changed, 6 insertions(+) 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}, diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd index 0230610c..b9d4cb8a 100644 --- a/doc/aerc-binds.5.scd +++ b/doc/aerc-binds.5.scd @@ -169,6 +169,10 @@ special keys are supported: : Insert | ** : Delete +| ** +: Ctrl+Delete +| ** +: Alt+Delete | ** : Backspace | ** -- cgit