From da0a6284cd70ffcab208049e1cae7c06ce857289 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 26 Apr 2015 13:14:56 +0200 Subject: [PATCH] keys: add underscore as special key. Should close T2369 --- src/bin/tty_keys.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/bin/tty_keys.h b/src/bin/tty_keys.h index ced9e2d3..89d556eb 100644 --- a/src/bin/tty_keys.h +++ b/src/bin/tty_keys.h @@ -601,6 +601,30 @@ static const Tty_Key tty_keys[] = { KH("\x9f"), // cursor Shift+Ctrl+Alt+minus }, }, +{ + "underscore", + sizeof("underscore") - 1, + { + KH("_"), // default underscore + KH("\033_"), // default Alt+underscore + KH("\x1f"), // default Ctrl+underscore + KH("\x9f"), // default Ctrl+Alt+underscore + KH("_"), // default Shift+underscore + KH("\033_"), // default Shift+Alt+underscore + KH("\x1f"), // default Shift+Ctrl+underscore + KH("\x9f"), // default Shift+Ctrl+Alt+underscore + }, + { + KH("_"), // cursor underscore + KH("\033_"), // cursor Alt+underscore + KH("\x1f"), // cursor Ctrl+underscore + KH("\x9f"), // cursor Ctrl+Alt+underscore + KH("_"), // cursor Shift+underscore + KH("\033_"), // cursor Shift+Alt+underscore + KH("\x1f"), // cursor Shift+Ctrl+underscore + KH("\x9f"), // cursor Shift+Ctrl+Alt+underscore + }, +}, { "space", sizeof("space") - 1,