Skip to content
Commit ab896620 authored by David Redondo's avatar David Redondo 🏎
Browse files

Grab the Keyboard on the first user click

Summary:
If we enter the region selection when a right click menu is opened we lose focus.
Which is bad because not every user knows about double click to take the
screenshot and can't exit anymore. We get the mouse back when the user clicks
and only can grab the keyboard if we have the mouse already. So just grab it
unconditionally if we get a mouse event. The user still has to do one more click
than normal but can now exit/take the picture via keyboard.

CCBUG: 407843

Test Plan:
- Open Rectangular Region Mode with a delay
- Right click during the delay
- Press escape to exit Spectacle

Reviewers: #spectacle, davidedmundson, ngraham

Reviewed By: #spectacle, ngraham

Subscribers: ngraham

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D21964
parent 33f84020
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment