Переглянути джерело

tools: grab focus when tool changes

Daniele Bartolini 5 роки тому
батько
коміт
2d1f4df556
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tools/level_editor/level_editor.vala

+ 1 - 1
tools/level_editor/level_editor.vala

@@ -600,7 +600,6 @@ public class LevelEditorApplication : Gtk.Application
 	{
 		set_placeable(type, name);
 		activate_action("tool", new GLib.Variant.string("place"));
-		_editor_view.grab_focus();
 	}
 
 	private void on_compiler_connected(string address, int port)
@@ -1263,6 +1262,7 @@ public class LevelEditorApplication : Gtk.Application
 		else if (name == "scale")
 			_tool_type = LevelEditorApi.ToolType.SCALE;
 
+		_editor_view.grab_focus();
 		send_state();
 		action.set_state(param);
 	}