mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 13:11:41 +02:00
implement keyboard shortcuts using KeyboardEvent.key api
this should improve compatibility across keyboard layouts (e.g. different languages). Old-style keycodes are still used for browsers that don't implement the new key property.
This commit is contained in:
@@ -325,7 +325,7 @@ export function uiMapInMap(context) {
|
||||
redraw();
|
||||
|
||||
var keybinding = d3keybinding('map-in-map')
|
||||
.on(key, toggle);
|
||||
.on([key, '⇧'+key], toggle);
|
||||
|
||||
d3.select(document)
|
||||
.call(keybinding);
|
||||
|
||||
Reference in New Issue
Block a user