[GH-ISSUE #693] Function keys not working #410

Closed
opened 2026-03-02 23:47:17 +03:00 by kerem · 2 comments
Owner

Originally created by @kirk781 on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/693

Does the keymaps.toml file not accept function keys as acceptable shortcut alternatives? I tried entering it but the program threw an error each time. It won't accept it's equivalent keycodes or keysym values from xev either.

ncspot , one of another terminal programs this app derives inspiration from works properly with keys like F3. Basically what I wanted to do was to go search bar [for songs] and then return to library view without using C-q for returning first. If I could map Library and Queue views to Function keys, then such an issue wouldn't arise [ncspot does such by default but it lacks Spotify Connect most notably, which tilted me towards this alternative].

OS: Void Linux
DE:LxQt
Version: spotify_player 0.20.4

Originally created by @kirk781 on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/693 Does the keymaps.toml file not accept function keys as acceptable shortcut alternatives? I tried entering it but the program threw an error each time. It won't accept it's equivalent keycodes or keysym values from xev either. _ncspot_ , one of another terminal programs this app derives inspiration from works properly with keys like F3. Basically what I wanted to do was to go search bar [for songs] and then return to library view without using C-q for returning first. If I could map _Library and Queue_ views to Function keys, then such an issue wouldn't arise [ncspot does such by default but it lacks Spotify Connect most notably, which tilted me towards this alternative]. OS: Void Linux DE:LxQt Version: spotify_player 0.20.4
kerem closed this issue 2026-03-02 23:47:18 +03:00
Author
Owner

@aome510 commented on GitHub (Mar 21, 2025):

should be working: github.com/aome510/spotify-player@78edb10e15/spotify_player/src/key.rs (L40-L51)

I haven't really used the function keys so I'm not sure if they are incorrectly parsed 🤔

<!-- gh-comment-id:2743262765 --> @aome510 commented on GitHub (Mar 21, 2025): should be working: https://github.com/aome510/spotify-player/blob/78edb10e15ddcd8c67e6807bd951e976c8c7b19d/spotify_player/src/key.rs#L40-L51 I haven't really used the function keys so I'm not sure if they are incorrectly parsed 🤔
Author
Owner

@kirk781 commented on GitHub (Mar 22, 2025):

should be working:

Thank you, it works like a charm. I was putting in capital keycodes since many apps including ncspot used to take that as input. It never came to my mind to try the smaller character.

<!-- gh-comment-id:2745303560 --> @kirk781 commented on GitHub (Mar 22, 2025): > should be working: Thank you, it works like a charm. I was putting in capital keycodes since many apps including ncspot used to take that as input. It never came to my mind to try the smaller character.
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/spotify-player#410
No description provided.