Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Autofocus the prompt to shutdown dialog #187

@GlasierXplor

Description

@GlasierXplor

Problem

In previous releases of elementaryOS, I can do the following to shut down:

  • Press the power button (which brings up the prompt to shutdown dialog)
  • Press the right direction key on my keyboard
  • Press "Enter" to shut down my laptop.

I noticed now that the prompt is not autofocused when it is brought up, causing the direction key not to be captured by the dialogue.

Not a nuisance, but I think it is something that will help in a very tiny way for those who don't want to reach for their mice to click on "shut down".

Proposal

Autofocus the prompt to shutdown dialogue when it is brought up.

Edits/Updates 31/08/2021:

I have done some tests and noticed the following:

  • If there are no windows opened on the desktop (minimising all applications is also considered not having any windows opened, switching to a blank workspace is also considered not having any windows opened), then on pressing the power button the shutdown prompt is focused.
    • However, if the prompt is closed, and the power button is pressed again, the prompt will not be focused.
  • If there are any windows opened, then the prompt will not be focused when the power button is pressed.
    • The focus stays within the last-focused window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions