summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail..com>2020-02-23 12:34:07 -0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-24 08:03:39 +0100
commit9e329cd476298383d4e68b868f487a1f4ccca9d8 (patch)
treea794c63a6bf903133eb9219a7980558a65be6344 /vcl/source/window/window.cxx
parent0fb4f2107d08febd4925dce6d96b41da9917e9ae (diff)
gtk3: allow handling of ctrl key accelerators
Change-Id: I681354f3b069a16d07a20bcc1fe110397d0ea2a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89315 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index cf56c9331e5e..7afb1fb36e6d 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1821,10 +1821,10 @@ void Window::KeyInput( const KeyEvent& rKEvt )
KeyCode cod = rKEvt.GetKeyCode ();
bool autoacc = ImplGetSVData()->maNWFData.mbAutoAccel;
- // do not respond to accelerators unless Alt is held */
+ // do not respond to accelerators unless Alt or Ctrl is held */
if (cod.GetCode () >= 0x200 && cod.GetCode () <= 0x219)
{
- if (autoacc && cod.GetModifier () != KEY_MOD2)
+ if (autoacc && cod.GetModifier () != KEY_MOD2 && !(cod.GetModifier() & KEY_MOD1))
return;
}