diff options
author | Jacob Gilbert <mrjacobagilbert@gmail.com> | 2020-04-08 17:05:52 -0600 |
---|---|---|
committer | Derek Kozel <derek.kozel@gmail.com> | 2020-04-09 21:05:39 +0100 |
commit | 8e777117e10a70a57e138ddbe2144732a3469cfc (patch) | |
tree | b52295d5a81fd9b0afae4af02371a2f7854dc992 /grc | |
parent | b687fb4413d2e8e11ef90a005fd416665413e986 (diff) |
grc: add hotkeys to clear/save console, and to toggle autoscroll, updated shortcut help menu accordingly
Diffstat (limited to 'grc')
-rw-r--r-- | grc/gui/Actions.py | 5 | ||||
-rw-r--r-- | grc/gui/Dialogs.py | 24 |
2 files changed, 17 insertions, 12 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index e483744afb..cf81e63ac7 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -480,7 +480,8 @@ TOGGLE_BLOCKS_WINDOW = actions.register("win.toggle_blocks_window", TOGGLE_SCROLL_LOCK = actions.register("win.console.scroll_lock", label='Console Scroll _Lock', tooltip='Toggle scroll lock for the console window', - preference_name='scroll_lock' + preference_name='scroll_lock', + keypresses=["Scroll_Lock"], ) ABOUT_WINDOW_DISPLAY = actions.register("app.about", label='_About', @@ -555,11 +556,13 @@ CLEAR_CONSOLE = actions.register("win.console.clear", label='_Clear Console', tooltip='Clear Console', icon_name='edit-clear', + keypresses=["<Ctrl>l"], ) SAVE_CONSOLE = actions.register("win.console.save", label='_Save Console', tooltip='Save Console', icon_name='edit-save', + keypresses=["<Ctrl><Shift>p"], ) OPEN_HIER = actions.register("win.open_hier", label='Open H_ier', diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py index 8f8c6069ef..af8e0230f1 100644 --- a/grc/gui/Dialogs.py +++ b/grc/gui/Dialogs.py @@ -300,24 +300,26 @@ def show_keyboard_shortcuts(parent): markup = textwrap.dedent("""\ <b>Keyboard Shortcuts</b> \n\ - <u>Ctrl+N</u>: Create a new flowgraph. + <u>Ctrl+N</u>: Create a new flowgraph. <u>Ctrl+O</u>: Open an existing flowgraph. - <u>Ctrl+S</u>: Save the current flowgraph or save as for new. + <u>Ctrl+S</u>: Save the current flowgraph or save as for new. <u>Ctrl+W</u>: Close the current flowgraph. - <u>Ctrl+Z</u>: Undo a change to the flowgraph. + <u>Ctrl+Z</u>: Undo a change to the flowgraph. <u>Ctrl+Y</u>: Redo a change to the flowgraph. <u>Ctrl+A</u>: Selects all blocks and connections. <u>Ctrl+P</u>: Screen Capture of the Flowgraph. - <u>Ctrl+E</u>: Show variable editor. - <u>Ctrl+F</u>: Search for a block by name. - <u>Ctrl+Q</u>: Quit. - <u>F1</u> : Help menu. - <u>F5</u> : Generate the Flowgraph. - <u>F6</u> : Execute the Flowgraph. + <u>Ctrl+Shift+P</u>: Save the console output to file. + <u>Ctrl+L</u>: Clear the console. + <u>Ctrl+E</u>: Show variable editor. + <u>Ctrl+F</u>: Search for a block by name. + <u>Ctrl+Q</u>: Quit. + <u>F1</u> : Help menu. + <u>F5</u> : Generate the Flowgraph. + <u>F6</u> : Execute the Flowgraph. <u>F7</u> : Kill the Flowgraph. <u>Ctrl+Shift+S</u>: Save as the current flowgraph. - <u>Ctrl+Shift+D</u>: Create a duplicate of current flow graph. - + <u>Ctrl+Shift+D</u>: Create a duplicate of current flow graph. + <u>Ctrl+X/C/V</u>: Edit-cut/copy/paste. <u>Ctrl+D/B/R</u>: Toggle visibility of disabled blocks or connections/block tree widget/console. |