[GH-ISSUE #930] [Bug] Focus dialog after using a shortcut to stop recording #716

Open
opened 2026-02-26 09:32:24 +03:00 by kerem · 8 comments
Owner

Originally created by @wenfangdu on GitHub (Jul 4, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/930

Currently, when using a shortcut to stop recording, the "Discard Project" dialog won't be focused, although the "No" button seems to be focused, in fact, it's not, therefore using arrow keys to switch option is not available:

image

Meanwhile, clicking the "stop recording" button will focus the "Discard Project" dialog:

image

For accessibility, it'd be great to unify this behavior and to generalize this issue, all dialogs might be checked.

Originally created by @wenfangdu on GitHub (Jul 4, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/930 Currently, when using a shortcut to stop recording, the "Discard Project" dialog won't be focused, although the "No" button seems to be focused, in fact, it's not, therefore using arrow keys to switch option is not available: ![image](https://user-images.githubusercontent.com/28700378/124371056-b2f9c400-dcb0-11eb-8526-5ca248ea86f7.png) Meanwhile, _clicking_ the "stop recording" button will focus the "Discard Project" dialog: ![image](https://user-images.githubusercontent.com/28700378/124371368-b93d6f80-dcb3-11eb-8706-01f41bf78303.png) For accessibility, it'd be great to unify this behavior and to generalize this issue, all dialogs might be checked.
Author
Owner

@NickeManarin commented on GitHub (Jul 4, 2021):

Thanks.

Looks like something is stealing the focus when the dialog is opening (or perhaps the dialog needs a force focus to activate properly).

<!-- gh-comment-id:873645895 --> @NickeManarin commented on GitHub (Jul 4, 2021): Thanks. Looks like something is stealing the focus when the dialog is opening (or perhaps the dialog needs a force focus to activate properly).
Author
Owner

@pawlos commented on GitHub (Jul 7, 2021):

@NickeManarin If you haven't started working on this, I can have a look at this one.

<!-- gh-comment-id:875259037 --> @pawlos commented on GitHub (Jul 7, 2021): @NickeManarin If you haven't started working on this, I can have a look at this one.
Author
Owner

@pawlos commented on GitHub (Jul 9, 2021):

It looks like the issue is that the Window is shown but not Activated. When done the same by mouse click - activates it. Did some initial testing and calling Activate not always works. What works is showing the editor before showing the dialog. I'll test this solution more to see if there aren't any unwanted behavior.

<!-- gh-comment-id:877431508 --> @pawlos commented on GitHub (Jul 9, 2021): It looks like the issue is that the Window is shown but not Activated. When done the same by mouse click - activates it. Did some initial testing and calling Activate not always works. What works is showing the editor before showing the dialog. I'll test this solution more to see if there aren't any unwanted behavior.
Author
Owner

@wenfangdu commented on GitHub (Jul 26, 2021):

@NickeManarin @pawlos Just tried v2.33.1, still reproducible, could you please consider reopening this issue?

<!-- gh-comment-id:886724230 --> @wenfangdu commented on GitHub (Jul 26, 2021): @NickeManarin @pawlos Just tried v2.33.1, still reproducible, could you please consider reopening this issue?
Author
Owner

@pawlos commented on GitHub (Jul 26, 2021):

I can't but @NickeManarin can reopen.

<!-- gh-comment-id:886800248 --> @pawlos commented on GitHub (Jul 26, 2021): I can't but @NickeManarin can reopen.
Author
Owner

@NickeManarin commented on GitHub (Jul 26, 2021):

It's working normally for me.
Pressing F8 to stop the recording still gives the focus to the dialog that asks about discarding the previous project.

Can you record your screen to show to us?
Or can you give us a step-by-step guide on how to get the same issue?

<!-- gh-comment-id:886950001 --> @NickeManarin commented on GitHub (Jul 26, 2021): It's working normally for me. Pressing F8 to stop the recording still gives the focus to the dialog that asks about discarding the previous project. Can you record your screen to show to us? Or can you give us a step-by-step guide on how to get the same issue?
Author
Owner

@wenfangdu commented on GitHub (Jul 29, 2021):

@NickeManarin @pawlos

Repro steps:

  1. Click "Record".
  2. Click the area being recorded (important, otherwise will return focus to the dialog).
  3. Hit F8.
<!-- gh-comment-id:889156580 --> @wenfangdu commented on GitHub (Jul 29, 2021): @NickeManarin @pawlos Repro steps: 1. Click "Record". 2. Click the area being recorded (important, otherwise will return focus to the dialog). 3. Hit `F8`.
Author
Owner

@pawlos commented on GitHub (Jul 29, 2021):

@wenfangdu thx for the steps. I'll get back to this issue.

<!-- gh-comment-id:889473719 --> @pawlos commented on GitHub (Jul 29, 2021): @wenfangdu thx for the steps. I'll get back to this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#716
No description provided.