From 48b263bb084a307d9ba0445790716ce0e9664ff3 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:16:33 +1000 Subject: [PATCH] fix saving file on linux --- src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs | 2 ++ src/SharpIDE.Godot/project.godot | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs index 41e2632..77f172c 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs @@ -401,6 +401,7 @@ public partial class SharpIdeCodeEdit : CodeEdit // Let each open tab respond to this event if (@event.IsActionPressed(InputStringNames.SaveAllFiles)) { + AcceptEvent(); _ = Task.GodotRun(async () => { await _fileChangedService.SharpIdeFileChanged(_currentFile, Text, FileChangeType.IdeSaveToDisk); @@ -418,6 +419,7 @@ public partial class SharpIdeCodeEdit : CodeEdit } else if (@event.IsActionPressed(InputStringNames.SaveFile) && @event.IsActionPressed(InputStringNames.SaveAllFiles) is false) { + AcceptEvent(); _ = Task.GodotRun(async () => { await _fileChangedService.SharpIdeFileChanged(_currentFile, Text, FileChangeType.IdeSaveToDisk); diff --git a/src/SharpIDE.Godot/project.godot b/src/SharpIDE.Godot/project.godot index 6605548..400dd68 100644 --- a/src/SharpIDE.Godot/project.godot +++ b/src/SharpIDE.Godot/project.godot @@ -53,7 +53,7 @@ FindInFiles={ } SaveFile={ "deadzone": 0.2, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null) ] } SaveAllFiles={