Skip to content

Commit b971e07

Browse files
committed
Update shortcut name
1 parent 48b34bd commit b971e07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

addons/gaea/editor/editor_settings.gd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const CONFIGURABLE_SLOT_COLORS := {
3434
GaeaValue.Type.SAMPLE: "sample",
3535
GaeaValue.Type.MAP: "map",
3636
}
37-
const SHORTCUT_BASE: String = "gaea/shortcut/%s/%s"
3837

3938
var editor_settings: EditorSettings
4039

@@ -185,12 +184,12 @@ static func get_file_list_action_shortcut(action: GaeaFileList.Action, shortcut_
185184

186185

187186
static func get_node_action_shortcut(action: GaeaGraphEdit.Action, shortcut_key: Key) -> Shortcut:
188-
return _get_shortcut("node_context", GaeaGraphEdit.Action.find_key(action), shortcut_key)
187+
return _get_shortcut("node_context_menu", GaeaGraphEdit.Action.find_key(action), shortcut_key)
189188

190189

191190
static func _get_shortcut(category: String, action_key: String, shortcut_key: Key) -> Shortcut:
192191
var editor_interface = Engine.get_singleton("EditorInterface")
193-
var shortcut_path = StringName(SHORTCUT_BASE % [category, action_key.to_snake_case()])
192+
var shortcut_path = StringName(("gaea/%s - %s" % [category.capitalize(), action_key.capitalize()]))
194193

195194
if editor_interface.get_editor_settings().has_shortcut(shortcut_path):
196195
return editor_interface.get_editor_settings().get_shortcut(shortcut_path)

0 commit comments

Comments
 (0)