-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the frame key is pressed rapidly, some presses are ignored, because the animation position is used to determine if the frame is visible. To fix, - remove class _KeyListener as it is not required, see also 3e28f56, - add a flag for whether the frame is wanted or not, self._wanted, - add a toggle() method, which calls show() or hide() according to last known wanted state, and call it from the mouse enter corner or frame key press methods, - do not test frame visibility in show() or hide(), depend on _wanted, - in the gesture handler, use toggle() instead of show() or hide(), Test case: xdotool key F6 key F6 key F6 should be equivalent in final effect to xdotool key F6 Fixes #4806 https://bugs.sugarlabs.org/ticket/4806
- Loading branch information
Showing
2 changed files
with
17 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters