Qt: Disable ESC to exit fullscreen if kb shortcuts are disabled

This commit is contained in:
Megamouse 2023-01-08 15:15:09 +01:00
parent 9b7eaf5117
commit c725b886e1

View file

@ -258,7 +258,7 @@ void gs_frame::keyPressEvent(QKeyEvent *keyEvent)
}
case Qt::Key_Escape:
{
if (visibility() == FullScreen)
if (visibility() == FullScreen && !m_disable_kb_hotkeys)
{
toggle_fullscreen();
return;