mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
fix undefined underscore keycode (#3564)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user