Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard selection of event boxes. #1115

Open
KaitlynEthylia opened this issue Jun 10, 2024 · 3 comments
Open

Keyboard selection of event boxes. #1115

KaitlynEthylia opened this issue Jun 10, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@KaitlynEthylia
Copy link

Description of the requested feature

It would be nice if, when a window is focused, it were possible to use the arrow keys to "hover" over event boxes, or return to "click" them

Proposed configuration syntax

(eventbox :keyboard-selectable true (...))

Additional context

No response

@KaitlynEthylia KaitlynEthylia added the enhancement New feature or request label Jun 10, 2024
@ancion
Copy link

ancion commented Aug 9, 2024

This would be useful with Tab key to select a Item in Task View or Launcher View
image
image

@w-lfchen
Copy link
Contributor

will be partially addressed by #640, if the author responds. i'll supersede that pr with a new one if that doesn't happen.

from my experience, tab functionality is sometimes there due to gtk doing gtk things, i imagine implementing arrow keys to be somewhat difficult.

for example, how should the relation between widget locations be resolved?

there are handlers for keyboard events though, so i wouldn't completely rule out the possibility of implementing such functionality

@w-lfchen
Copy link
Contributor

w-lfchen commented Sep 2, 2024

hi, i've looked into this further while working on #1187 (implements keyboard support for buttons).
while i am not experienced enough to make any claims with full confidence, it seems like eventboxes are not able to receive button press events .
also, some things were really flaky, but it's entirely possible that i just missed something or that my code sucks, gtk is hard ^^'

however, i can report something else:
keyboard navigation (using arrow keys and tab) works, at least from a small test with an array of buttons inside boxes.
since buttons can hold any widget as their child, just use those instead of eventboxes if possible

if you want to help out a bit, feel free to build and use #1187 and report your experiences there ^^
if you think that pr resolves this issue, feel free to mention it there so i can link the two

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants