NoobishSVK / fm-dx-webserver

FM-DX Webserver is a cross-platform web server designed for FM DXers who want to control their radio receivers through a web interface.
https://fmdx.org/projects/webserver.php
GNU General Public License v3.0
29 stars 21 forks source link

More strict processing of keyboard shortcuts #63

Closed marvellousmachine closed 1 month ago

marvellousmachine commented 1 month ago

Currently the keyboard shortcuts are processed quite loosely, what can lead to undesired behaviour. E.G.:

  1. Closing the window using Alt+F4 also activates the preset saved under F4 and closes the window.
  2. pressing Ctrl+R resets the RDS data before refresing the page

The desired behaviour would be to strictly react only to defined shortcuts, in this case F4, R, and also arrows without modifiers. It might be also useful in the future when defining additional shortcuts.

NoobishSVK commented 1 month ago

I have added a check for modifier keys, please check.

marvellousmachine commented 1 month ago

Fixed. Thanks.