mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Match '+' as-is (no shift, because shift '+' is '?' on some non-US keyboards)
(closes #4079)
This commit is contained in:
+11
-1
@@ -71,10 +71,20 @@ export function uiZoom(context) {
|
||||
|
||||
var keybinding = d3keybinding('zoom');
|
||||
|
||||
_.each(['=','ffequals','plus','ffplus'], function(key) {
|
||||
|
||||
// match '+' as-is (no '⇧', because '⇧+' is '?' on some non-US keyboards)
|
||||
_.each(['plus','ffplus'], function(key) {
|
||||
keybinding.on([key], zoomIn);
|
||||
keybinding.on([uiCmd('⌘' + key)], zoomInFurther);
|
||||
});
|
||||
|
||||
// also match '=' and '⇧=' as a plus
|
||||
_.each(['=','ffequals'], function(key) {
|
||||
keybinding.on([key, '⇧' + key], zoomIn);
|
||||
keybinding.on([uiCmd('⌘' + key), uiCmd('⌘⇧' + key)], zoomInFurther);
|
||||
});
|
||||
|
||||
// match '-' and '⇧-' as a minus
|
||||
_.each(['-','ffminus','dash'], function(key) {
|
||||
keybinding.on([key, '⇧' + key], zoomOut);
|
||||
keybinding.on([uiCmd('⌘' + key), uiCmd('⌘⇧' + key)], zoomOutFurther);
|
||||
|
||||
Reference in New Issue
Block a user