VOOZH about

URL: https://codeberg.org/edestcroix/Recordbox/issues/241

โ‡ฑ #241 - `Ctrl+Space` interferes with keyboard navigation - edestcroix/Recordbox - Codeberg.org


Ctrl+Space interferes with keyboard navigation #241

Open
opened by manan-gup ยท 4 comments
๐Ÿ‘ manan-gup
Contributor
Copy link

The Ctrl+Space shortcut for play/pause interferes with keyboard navigation as that's the exact key combination you'd use for multi-selecting in lists. Right now you can multi-select via keyboard if you navigate via Ctrl+Up/Down Arrow and then unpress Ctrl and press Space.

GNOME HIG suggests using Ctrl+Letter for shortcuts and Amberol uses Ctrl+P:

๐Ÿ‘ image

Fig: Shortcut dialog from Amberol

The `Ctrl+Space` shortcut for play/pause interferes with keyboard navigation as that's the exact key combination you'd use for multi-selecting in lists. Right now you can multi-select via keyboard if you navigate via `Ctrl+Up/Down Arrow` and then unpress `Ctrl` and press `Space`. [GNOME HIG](https://developer.gnome.org/hig/guidelines/keyboard.html) suggests using `Ctrl+Letter` for shortcuts and Amberol uses `Ctrl+P`: ![image](/attachments/e7f38db9-eb3d-48aa-8130-f32daac0a96a) Fig: *Shortcut dialog from Amberol*
๐Ÿ‘ manan-gup
Author
Contributor
Copy link

Just noticed that Ctrl+Space is used in another context as well:

๐Ÿ‘ image

Probably should be changed as well and also this doesn't currently work anyway as Ctrl+Space just play/pauses. Unless I'm missing something.

EDIT 2: It does works in the edit lyrics dialog. I was mistaken about what the shortcut is for. Maybe the tab title in the shortcuts dialog can be changed to "Synced Lyrics Editor" or something like that. Otherwise, this works fine and doesn't clash with the player controls.

Just noticed that `Ctrl+Space` is used in another context as well: ![image](/attachments/dc0940e0-3f34-4941-9b18-06cf09dbfb71) Probably should be changed as well and also this doesn't currently work anyway as `Ctrl+Space` just play/pauses. Unless I'm missing something. ~~EDIT: Are these even set anywhere? I can't find them in the codebase. Or are they set by gtk/libadwaita?~~ EDIT 2: It does works in the edit lyrics dialog. I was mistaken about what the shortcut is for. Maybe the tab title in the shortcuts dialog can be changed to "Synced Lyrics Editor" or something like that. Otherwise, this works fine and doesn't clash with the player controls.
๐Ÿ‘ manan-gup
Author
Contributor
Copy link

Another option could be to use the focus-in-event/focus-out-event on the search entry widget to disable/enable global shortcuts. This way single key shortcuts would be possible to use (though I'm not sure if this would be completely unproblematic).
Setting the propagation phase to None might be a way to disable a ShortcutController.

Another option could be to use the `focus-in-event`/`focus-out-event` on the search entry widget to disable/enable global shortcuts. This way single key shortcuts would be possible to use (though I'm not sure if this would be completely unproblematic). Setting the [propagation phase](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/prelude/trait.EventControllerExt.html#method.set_propagation_phase) to `None` might be a way to disable a `ShortcutController`.
๐Ÿ‘ Emmett de St. Croix
Owner
Copy link

I'll think I'll change it to Ctrl+P like Amberol then, probably the best option to avoid any more conflicts. Single key shortcuts are generally problematic, and I also vaguely remember trying to do something like using the search entry focus events to disable global shortcuts and it ended up being more trouble than it would've been worth.

And yeah I should make it clear those shortcuts are for the editor and not the viewer, I'll switch that too.

I'll think I'll change it to `Ctrl+P` like Amberol then, probably the best option to avoid any more conflicts. Single key shortcuts are generally problematic, and I also vaguely remember trying to do something like using the search entry focus events to disable global shortcuts and it ended up being more trouble than it would've been worth. And yeah I should make it clear those shortcuts are for the editor and not the viewer, I'll switch that too.
๐Ÿ‘ manan-gup
Author
Contributor
Copy link

I'll change it to Ctrl+P like Amberol

Yeah, seems reasonable.

> I'll change it to Ctrl+P like Amberol Yeah, seems reasonable.
Sign in to join this conversation.
No Branch/Tag specified
Clear milestone
No items
No milestone
Clear projects
No items
No project
Clear assignees
No assignees
2 participants
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
edestcroix/Recordbox#241
Reference in a new issue
No description provided.
Delete branch "%!s(

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?