mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
Merge pull request #12865 from keymanapp/fix/web/12483-numpad-zoom
fix(web): numpad + and - with zoom shortcut use
This commit is contained in:
commit
e7cc9d345d
1 changed files with 7 additions and 0 deletions
|
|
@ -131,6 +131,13 @@ export default class DefaultRules {
|
|||
|
||||
// Should not be used for mnenomic keyboards. forAny()'s use of this method checks first.
|
||||
public forNumpadKeys(Lkc: KeyEvent) {
|
||||
// Do not provide output if modifiers other than Shift are held.
|
||||
// There may be associated shortcuts we might otherwise block.
|
||||
// See #12483 - zooming shortcuts can trigger from CTRL & + or - on the numpad
|
||||
if(Lkc.Lmodifiers != ModifierKeyConstants.K_SHIFTFLAG && Lkc.Lmodifiers != 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Translate numpad keystrokes into their non-numpad equivalents
|
||||
if(Lkc.Lcode >= Codes.keyCodes["K_NP0"] && Lkc.Lcode <= Codes.keyCodes["K_NPSLASH"]) {
|
||||
// Number pad, numlock on
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue