Ask Your Question

Keyboard shortcut to hide/show all toolbars [closed]

asked 2017-07-16 13:46:11 +0200

dotancohen gravatar image

updated 2020-10-09 22:16:25 +0200

Alex Kemp gravatar image

Is there a keyboard shortcut to toggle the display of all toolbars?

I know of Ctrl-Shift-J to toggle Full Screen mode, which has no toolbars, but I need a non-fullscreen window to toggle toolbars. Thank you.

LibreOffice 5.3, CentOS 7.3, KDE 4.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-09 22:16:36.734481

1 Answer

Sort by » oldest newest most voted

answered 2017-07-17 01:22:55 +0200

librebel gravatar image

Hello @dotancohen,

You could use the following macro and connect your own shortcut key to it:

Sub ToggleGUI()
    Dim bFrameGUIoff As Boolean
    bFrameGUIoff = ThisComponent.CurrentController.Frame.LayoutManager.HideCurrentUI
    ThisComponent.CurrentController.Frame.LayoutManager.HideCurrentUI = Not bFrameGUIoff
End Sub
  1. Copy the above macro to a Module somewhere in your "My Macro's & Dialogs" Basic Library container,
  2. Select the menu "Tools : Customize...",
  3. Select the tab "Keyboard",
  4. Select the option button "LibreOffice" on the right side of the dialog, to make your shortcut key valid in all of LO,
  5. In the listbox called "Category", scroll down to the item "LibreOffice Macros" and expand it by clicking on the small triangle,
  6. next also expand the item "user", then locate and select the Module containing the macro from step 1,
  7. In the listbox called "Function", select the function "ToggleGUI",
  8. In the listbox "Shortcut Keys", scroll down to find an available key combination and select it,
  9. Then press the "Modify" button.
edit flag offensive delete link more


Thank you, this is a terrific, detailed answer. I have not yet enough rep to upvote, but of course I select it as the selected answer. As soon as I have the rep I'll upvote as well.

Again, thank you!

dotancohen gravatar imagedotancohen ( 2017-07-17 08:20:14 +0200 )edit

You're welcome @dotancohen, glad i could be of help :D i upvoted your question as well.

librebel gravatar imagelibrebel ( 2017-07-17 08:39:39 +0200 )edit

Question Tools



Asked: 2017-07-16 13:46:11 +0200

Seen: 1,494 times

Last updated: Jul 17 '17