fix undefined underscore keycode (#3564)

This commit is contained in:
Martin Raifer
2016-11-08 12:13:31 +01:00
committed by GitHub
parent df1d9d5723
commit cc599f3c03
2 changed files with 3 additions and 2 deletions

View File

@@ -169,7 +169,8 @@ d3keybinding.keyCodes = {
'=': 187, 'equals': 187,
// Comma, or ,
',': 188, comma: 188,
'dash': 189, //???
// Dash / Underscore key
'dash': 189,
// Period, or ., or full-stop
'.': 190, period: 190, 'full-stop': 190,
// Slash, or /, or forward-slash

View File

@@ -75,7 +75,7 @@ export function uiZoom(context) {
keybinding.on([key, '⇧' + key], zoomIn);
keybinding.on([uiCmd('⌘' + key), uiCmd('⌘⇧' + key)], zoomInFurther);
});
_.each(['-','ffminus','_','dash'], function(key) {
_.each(['-','ffminus','dash'], function(key) {
keybinding.on([key, '⇧' + key], zoomOut);
keybinding.on([uiCmd('⌘' + key), uiCmd('⌘⇧' + key)], zoomOutFurther);
});