mirror of https://github.com/WerWolv/ImHex.git
Prevent shortcuts from applying to closed windows
This commit is contained in:
parent
3276ad9979
commit
8a4b663890
|
@ -160,8 +160,10 @@ namespace hex {
|
||||||
|
|
||||||
if (auto &[key, mods] = Window::s_currShortcut; key != -1) {
|
if (auto &[key, mods] = Window::s_currShortcut; key != -1) {
|
||||||
for (auto &view : this->m_views) {
|
for (auto &view : this->m_views) {
|
||||||
if (view->handleShortcut(key, mods))
|
if (view->getWindowOpenState()) {
|
||||||
break;
|
if (view->handleShortcut(key, mods))
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Window::s_currShortcut = { -1, -1 };
|
Window::s_currShortcut = { -1, -1 };
|
||||||
|
|
Loading…
Reference in New Issue