1
0
mirror of synced 2024-09-24 03:28:24 +02:00

Prevent shortcuts from applying to closed windows

This commit is contained in:
WerWolv 2020-11-29 01:18:12 +01:00
parent 3276ad9979
commit 8a4b663890

View File

@ -160,8 +160,10 @@ namespace hex {
if (auto &[key, mods] = Window::s_currShortcut; key != -1) {
for (auto &view : this->m_views) {
if (view->handleShortcut(key, mods))
break;
if (view->getWindowOpenState()) {
if (view->handleShortcut(key, mods))
break;
}
}
Window::s_currShortcut = { -1, -1 };