fix(display): do not toggle fullscreen on F11 when modifier keys are held (#1309) #1608

Merged
oscarlosu-lab merged 1 commit from fix/f11-modifiers into main 2026-11-10 11:25:32 +00:00
oscarlosu-lab commented 2026-11-10 10:57:03 +00:00 (Migrated from github.com)

This change prevents Hookshot from intercepting <kbd>F11\ when modifier keys such as Shift, Control, or Alt are pressed. Without this, pressing <kbd>Shift+F11\ (the default overlay toggle hotkey in RivaTuner Statistics Server / MSI Afterburner) toggles Hookshot's fullscreen mode and interferes with third-party overlay hotkeys.

Changes

  • In \host/display.c: Check that \VK_SHIFT, \VK_CONTROL, and \VK_MENU\ are not active before toggling fullscreen on \VK_F11.
  • In \host/posix/display_sdl.c: Ignore F11 (\scancode == 68) when modifier bits (\Shift | Ctrl | Alt | GUI) are held. Alt+Enter continues to toggle fullscreen as intended.

Fixes #1309.

This change prevents Hookshot from intercepting \<kbd>F11</kbd>\ when modifier keys such as Shift, Control, or Alt are pressed. Without this, pressing \<kbd>Shift+F11</kbd>\ (the default overlay toggle hotkey in RivaTuner Statistics Server / MSI Afterburner) toggles Hookshot's fullscreen mode and interferes with third-party overlay hotkeys. ### Changes - In \host/display.c\: Check that \VK_SHIFT\, \VK_CONTROL\, and \VK_MENU\ are not active before toggling fullscreen on \VK_F11\. - In \host/posix/display_sdl.c\: Ignore F11 (\scancode == 68\) when modifier bits (\Shift | Ctrl | Alt | GUI\) are held. Alt+Enter continues to toggle fullscreen as intended. Fixes #1309.
Commenting is not possible because the repository is archived.
No description provided.