Add browse mode action to action collection again

Authored by muhlenpfordt on Jan 17 2018, 10:23 AM.

Description

Add browse mode action to action collection again

Summary:
The browse mode action with default shortcut Esc is not added to action collection (removed in D5824) and therefore not visible/changeable in SettingsConfigure Shortcuts.
Using Esc as shortcut for e.g. Quit does not work.
This patch re-adds the browse mode action to action collection, but also checks for ShortcutOverride events to handle active tool dialogs.

BUG: 385242

Test Plan:

  1. Open gwenview
  2. Set alternate shortcut Esc in Settings -Configure Shortcuts for Quit command
  3. Press Esc

-> Should exit gwenview

If tool dialog (crop, red eye reduction) is active, pressing Esc should not exit gwenview, but the tool dialog first.

Reviewers: cfeck, rkflx, ngraham

Reviewed By: rkflx, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D9943

Details

Committed
muhlenpfordtJan 22 2018, 9:30 AM
Reviewer
rkflx
Differential Revision
D9943: Add browse mode action to action collection again
Parents
R260:d371a8e663ec: Rename setTargetUrl to setTargetDirUrl
Branches
Unknown
Tags
Unknown