From 17b8857dc00f5255c14e0b7a274ea0d4cfb53c7c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Apr 2020 21:09:47 +0200 Subject: [PATCH] LibVT: Shift+Tab should generate ESC[Z Fixes #1751. --- Libraries/LibVT/TerminalWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibVT/TerminalWidget.cpp b/Libraries/LibVT/TerminalWidget.cpp index 0324df3ef08..45b60a710f5 100644 --- a/Libraries/LibVT/TerminalWidget.cpp +++ b/Libraries/LibVT/TerminalWidget.cpp @@ -242,6 +242,11 @@ void TerminalWidget::keydown_event(GUI::KeyEvent& event) break; } + if (event.shift() && event.key() == KeyCode::Key_Tab) { + write(m_ptm_fd, "\033[Z", 3); + return; + } + // Key event was not one of the above special cases, // attempt to treat it as a character... char ch = !event.text().is_empty() ? event.text()[0] : 0;