loolwsd/ChildProcessSession.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit 21e6ac23ea7b104dcfe14d544b07ff0d9be98584 Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits