summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-07-28 21:23:03 +1000
committerMaxime Coste <mawww@kakoune.org>2022-07-28 21:23:03 +1000
commit935261c8beefee792735da0628cb1b426f844668 (patch)
tree72e83cb8d476b5beeef288570ae6df5c03f1bf44 /src/input_handler.cc
parent5fb858d0c5d13e1b5d6e3835f79cf16b8d82bdcc (diff)
parentdbd8cf214526ca29ff06cdcf85729f07404d8176 (diff)
Merge remote-tracking branch 'krobelus/support-shift-backspace'
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index b35cde29..956c32d7 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -469,7 +469,7 @@ public:
m_cursor_pos = 0;
else if (key == Key::End or key == ctrl('e'))
m_cursor_pos = m_line.char_length();
- else if (key == Key::Backspace or key == ctrl('h'))
+ else if (key == Key::Backspace or key == shift(Key::Backspace) or key == ctrl('h'))
{
if (m_cursor_pos != 0)
{
@@ -810,7 +810,7 @@ public:
return;
}
else if (key == Key::Escape or key == ctrl('c') or
- ((key == Key::Backspace or key == ctrl('h')) and line.empty()))
+ ((key == Key::Backspace or key == shift(Key::Backspace) or key == ctrl('h')) and line.empty()))
{
history_push(line);
context().print_status(DisplayLine{});
@@ -1263,7 +1263,7 @@ public:
m_completer.reset();
pop_mode();
}
- else if (key == Key::Backspace)
+ else if (key == Key::Backspace or key == shift(Key::Backspace))
{
Vector<Selection> sels;
for (auto& sel : context().selections())