mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 21:48:03 +02:00
Add touch info to keyboard shortcuts screen
This commit is contained in:
@@ -199,6 +199,12 @@ export function uiShortcuts(context) {
|
||||
if (click && click[1]) { // replace "left_click", "right_click" with mouse icon
|
||||
selection
|
||||
.call(svgIcon('#iD-walkthrough-mouse-' + click[1], 'operation'));
|
||||
} else if (d.shortcut.toLowerCase() === 'long-press') {
|
||||
selection
|
||||
.call(svgIcon('#iD-walkthrough-longpress', 'longpress operation'));
|
||||
} else if (d.shortcut.toLowerCase() === 'tap') {
|
||||
selection
|
||||
.call(svgIcon('#iD-walkthrough-tap', 'tap operation'));
|
||||
} else {
|
||||
selection
|
||||
.append('kbd')
|
||||
|
||||
Reference in New Issue
Block a user