Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix #1495
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul committed May 22, 2016
1 parent 9db32f0 commit afba08d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class Main extends ImmutableComponent {
ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_ZOOM_IN)
}
break
case keyCodes.NUMPAD_MINUS:
if (eventUtil.isForSecondaryAction(e)) {
ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_ZOOM_OUT)
}
break
}
})
}
Expand Down
3 changes: 2 additions & 1 deletion js/constants/keyCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const KeyCodes = {
LEFT: 37,
RIGHT: 39,
F12: 123,
NUMPAD_PLUS: 107
NUMPAD_PLUS: 107,
NUMPAD_MINUS: 109
}

module.exports = KeyCodes

0 comments on commit afba08d

Please sign in to comment.