Skip to content
Snippets Groups Projects

Add keybindings to show the menubar temporarily when hidden

Merged Gaël Bonithon requested to merge Tamaranch/mousepad:show-menubar-temporarily into master

Closes #47 (closed), #68 (closed).

This MR addresses #47 (closed) and therefore reproduces a common behavior for the menu bar nowadays, when it is hidden (e.g. for Firefox which I used as a reference):

  • When the Alt key is released, show the menubar temporarily (i.e. settings are not affected);
  • When the Alt or Esc keys are then pressed, hide the menubar;
  • Hide also the menubar after some user actions (mouse buttons pressed/released, scroll, focus out);
  • When a menubar mnemonic key is activated (e.g. Alt+f) show the menubar and popup the corresponding submenu (then hide the menubar and its submenu all at once).

This led me to refactor a bit the code around menubar/toolbar/statusbar display in window/fullscreen mode.

I also integrated @lastonestanding's proposal regarding default keybindings in #68 (closed).

Edited by Gaël Bonithon

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading