Fix keyboard shortcuts for special processing of CTRL and META

The processing of CTRL and META was in change
I8e7d552b3927047b31ced373eafac3436a70b277 unnecessarily removed. As a
result of this shortcuts like 'STRG+T were' interpreted as 'T'.

Bug: issue 3970
Change-Id: If782ca367a9c7f34db3b53fd1f2974f7a9127dfc
This commit is contained in:
Pascal Krause 2016-03-23 10:50:19 +01:00
parent b58f38ffc4
commit 96c26821ba
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,12 @@ public class KeyCommandSet implements KeyPressHandler {
if (mask == 0) {
mask = event.getNativeEvent().getKeyCode();
}
if (event.isControlKeyDown()) {
mask |= KeyCommand.M_CTRL;
}
if (event.isMetaKeyDown()) {
mask |= KeyCommand.M_META;
}
return mask;
}
}