[Libreoffice-commits] online.git: loolwsd/ChildProcessSession.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Sun Apr 10 04:16:15 UTC 2016
loolwsd/ChildProcessSession.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 21e6ac23ea7b104dcfe14d544b07ff0d9be98584
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Apr 10 00:14:20 2016 -0400
loolwsd: prevent ctrl+tab from inserting tab characters
Change-Id: I10b32a3e8ea1c8f80fadc9a8e6502b1a8bd322cc
Reviewed-on: https://gerrit.libreoffice.org/23953
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index 912955e..ac6b53a 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -1042,7 +1042,17 @@ bool ChildProcessSession::keyEvent(const char* /*buffer*/, int /*length*/, Strin
constexpr auto KEY_CTRL = 0x2000;
constexpr auto KEY_W = 0x0216;
if (keycode == (KEY_CTRL | KEY_W))
+ {
+ return true;
+ }
+
+ // Ctrl+Tab switching browser tabs,
+ // Doesn't insert tabs.
+ constexpr auto KEY_TAB = 0x0502;
+ if (keycode == (KEY_CTRL | KEY_TAB))
+ {
return true;
+ }
std::unique_lock<std::recursive_mutex> lock(Mutex);
More information about the Libreoffice-commits
mailing list