ErikReider/SwayNotificationCenter

[Feature] Allow selection and activation of a notification action with arrow keys

Open

#186 opened on Nov 28, 2022

 (2 comments) (0 reactions) (0 assignees)Vala (98 forks)auto 404
Low Priorityenhancementhelp wanted

Repository metrics

Stars
 (2,535 stars)
PR merge metrics
 (PR metrics pending)

Description

It would be nice if we could select a notification action and activate it using a keyboard.

Currently, we can open the notification centre using a keyboard shortcut, as well as cycle through the notifications using Up and Down keys.

However, IMO we should be able to use Left and Right keys to cycle through the actions and Enter or Space to activate (execute) the selected action.

I don’t think that we should remember the selected action if we change the selected notification, thus we should always (by default) select the leftmost action in left-to-right writing systems and the rightmost action in the right-to-left writing systems.

Contributor guide