Просмотр исходного кода

tools: do not select the text inside the entry when grabbing focus

Daniele Bartolini 4 лет назад
Родитель
Сommit
ace257d778
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 0
      docs/changelog.rst
  2. 1 1
      tools/level_editor/level_editor.vala

+ 4 - 0
docs/changelog.rst

@@ -5,6 +5,10 @@ Changelog
 ------
 *DD MMM YYYY*
 
+**Tools**
+
+* Fixed minor issues when toggling the Console.
+
 0.46.0
 ------
 *19 Nov 2021*

+ 1 - 1
tools/level_editor/level_editor.vala

@@ -2096,7 +2096,7 @@ public class LevelEditorApplication : Gtk.Application
 			if (_console_view._entry.has_focus)
 				_console_view.hide();
 			else
-				_console_view._entry.grab_focus();
+				_console_view._entry.grab_focus_without_selecting();
 		}
 		else
 		{