From e031ee3aef9622169909c77fb62e1a833e38d75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Tue, 22 Dec 2020 11:28:46 -0800 Subject: [PATCH] Ctrl+UpArrow for selecting parent way --- data/shortcuts.json | 3 ++- modules/modes/select.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/shortcuts.json b/data/shortcuts.json index 3453911ee..3819602b1 100644 --- a/data/shortcuts.json +++ b/data/shortcuts.json @@ -159,7 +159,8 @@ "text": "shortcuts.browsing.vertex_selected.last" }, { - "shortcuts": ["<"], + "modifiers": ["⌘"], + "shortcuts": ["↑"], "text": "shortcuts.browsing.vertex_selected.parent" }, { diff --git a/modules/modes/select.js b/modules/modes/select.js index 288aef9b3..e9a84a912 100644 --- a/modules/modes/select.js +++ b/modules/modes/select.js @@ -245,7 +245,7 @@ export function modeSelect(context, selectedIDs) { .on(utilKeybinding.minusKeys.map((key) => uiCmd('⇧' + key)), scaleSelection(1/1.05)) .on(utilKeybinding.minusKeys.map((key) => uiCmd('⇧⌥' + key)), scaleSelection(1/Math.pow(1.05, 5))) .on(['\\', 'pause'], nextParent) - .on('<', selectParent) + .on(uiCmd('⌘↑'), selectParent) .on('⎋', esc, true); d3_select(document)