changeset 23941:804d60784340

fix shortcuts for showing and giving focus to the variable editor * main-window.cc (configure_shortcuts): set shortcut for action that switches to the variabel editor; (construct_window_menu): fix wrong name of menu entry for variable editor * shortcut-manager.cc (do_init_data): initialize shortcuts related to the variable editor
author Torsten <mttl@mailbox.org>
date Fri, 25 Aug 2017 17:30:32 +0200
parents d260f54d7dde
children 9c736cc2ee94
files libgui/src/main-window.cc libgui/src/shortcut-manager.cc
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Fri Aug 25 08:29:55 2017 +0200
+++ b/libgui/src/main-window.cc	Fri Aug 25 17:30:32 2017 +0200
@@ -2350,7 +2350,7 @@
             (window_menu, tr ("Documentation"), false, doc_browser_window);
 
   _variable_editor_action = construct_window_menu_item
-            (window_menu, tr ("Documentation"), false, variable_editor_window);
+            (window_menu, tr ("Variable Editor"), false, variable_editor_window);
 
   window_menu->addSeparator ();
 
@@ -2662,6 +2662,8 @@
   shortcut_manager::set_shortcut (_show_editor_action, "main_window:show_editor");
   shortcut_manager::set_shortcut (_show_documentation_action,
                                   "main_window:show_doc");
+  shortcut_manager::set_shortcut (_show_variable_editor_action,
+                                  "main_window:show_variable_editor");
   shortcut_manager::set_shortcut (_command_window_action, "main_window:command");
   shortcut_manager::set_shortcut (_history_action, "main_window:history");
   shortcut_manager::set_shortcut (_workspace_action,  "main_window:workspace");
--- a/libgui/src/shortcut-manager.cc	Fri Aug 25 08:29:55 2017 +0200
+++ b/libgui/src/shortcut-manager.cc	Fri Aug 25 17:30:32 2017 +0200
@@ -151,6 +151,8 @@
         prefix + ctrl_shift + Qt::Key_4);
   init (tr ("Show Documentation"), "main_window:show_doc",
         prefix + ctrl_shift + Qt::Key_5);
+  init (tr ("Show Variable Editor"), "main_window:show_variable_editor",
+        prefix + ctrl_shift + Qt::Key_6);
   init (tr ("Command Window"), "main_window:command",
         prefix + ctrl + Qt::Key_0);
   init (tr ("Command History"), "main_window:history",
@@ -163,6 +165,8 @@
         prefix + ctrl + Qt::Key_4);
   init (tr ("Documentation"), "main_window:doc",
         prefix + ctrl + Qt::Key_5);
+  init (tr ("Variable Editor"), "main_window:variable_editor",
+        prefix + ctrl + Qt::Key_6);
   init (tr ("Reset Default Window Layout"), "main_window:reset", QKeySequence ());
 
   // help