semi-idle-arpg/addons/godot_vim/commands/wa.gd
2024-09-19 19:03:06 -06:00

18 lines
387 B
GDScript

const Constants = preload("res://addons/godot_vim/constants.gd")
const MODE = Constants.Mode
func execute(api, _args: String):
#EditorInterface.save_scene()
press_save_shortcut()
api.cursor.set_mode(MODE.NORMAL)
func press_save_shortcut():
var a = InputEventKey.new()
a.keycode = KEY_S
a.shift_pressed = true
a.alt_pressed = true
a.pressed = true
Input.parse_input_event(a)