# HG changeset patch # User Torsten # Date 1503675032 -7200 # Node ID 804d60784340ccf9f9a8a5677cddc5ec89bfb993 # Parent d260f54d7dde9ad6c31b35c60c74397701ed8921 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 diff -r d260f54d7dde -r 804d60784340 libgui/src/main-window.cc --- 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"); diff -r d260f54d7dde -r 804d60784340 libgui/src/shortcut-manager.cc --- 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