mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Add touch info to keyboard shortcuts screen
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
"text": "shortcuts.browsing.selecting.title"
|
||||
},
|
||||
{
|
||||
"shortcuts": ["Left-click", "shortcuts.key.space"],
|
||||
"shortcuts": ["Left-click", "Tap", "shortcuts.key.space"],
|
||||
"text": "shortcuts.browsing.selecting.select_one"
|
||||
},
|
||||
{
|
||||
@@ -131,7 +131,7 @@
|
||||
"text": "shortcuts.browsing.with_selected.title"
|
||||
},
|
||||
{
|
||||
"shortcuts": ["Right-click", "☰"],
|
||||
"shortcuts": ["Right-click", "Long-press", "☰"],
|
||||
"text": "shortcuts.browsing.with_selected.edit_menu"
|
||||
},
|
||||
{
|
||||
@@ -193,7 +193,7 @@
|
||||
"text": "shortcuts.editing.drawing.add_note"
|
||||
},
|
||||
{
|
||||
"shortcuts": ["Left-click", "shortcuts.key.space"],
|
||||
"shortcuts": ["Left-click", "Tap", "shortcuts.key.space"],
|
||||
"text": "shortcuts.editing.drawing.place_point"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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