mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-12 09:34:37 +02:00
Update to v103r14 release.
byuu says: Changelog: - tomoko: by popular choice, default to adaptive mode on new installs - hiro/windows: fix bug that was preventing the escape key from closing some dialog windows - nall/registry: use "\\\\" as separator instead of "/" ... because some registry keys contain "/" in them >_> - ruby: add ASIO driver stub (so far it can only initialize and grab the driver name/version information)
This commit is contained in:
@@ -142,7 +142,10 @@ static auto Application_keyboardProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
|
||||
auto object = (mObject*)GetWindowLongPtr(info.hwndFocus, GWLP_USERDATA);
|
||||
if(!object) return false;
|
||||
|
||||
if(auto window = dynamic_cast<mWindow*>(object)) {
|
||||
auto objectWindow = (mObject*)GetWindowLongPtr(GetAncestor(info.hwndFocus, GA_ROOT), GWLP_USERDATA);
|
||||
if(!objectWindow) return false;
|
||||
|
||||
if(auto window = dynamic_cast<mWindow*>(objectWindow)) {
|
||||
if(auto self = window->self()) {
|
||||
if(!self->_modalityDisabled()) {
|
||||
if(auto code = pKeyboard::_translate(wparam, lparam)) {
|
||||
@@ -158,7 +161,6 @@ static auto Application_keyboardProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if(auto window = object->parentWindow(true)) {
|
||||
@@ -218,7 +220,6 @@ static auto Application_keyboardProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
|
||||
}
|
||||
}
|
||||
CloseClipboard();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user