tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
968 stars 42 forks source link

QuitPopup & ConfigSavePopup: allow confirming choices with "Y" and "N" #249

Closed hasezoey closed 3 months ago

hasezoey commented 3 months ago

This PR adds keybindings for Y and N to the QuitPopup to confirm the choices. Please note that i am not proficient in tuirealm, so i dont if i set it properly (it looks quite verbose to me)

fixes #108

hasezoey commented 3 months ago

as a addition, i also added the same behavior to the config editor's "confirm" dialog

tramhao commented 3 months ago

Yes, it's not very straight forward to add key bindings in tuirealm. Consider add to help as well. It's best to show everything without referring to other documentation.