Update to 12.0-RC1

This commit is contained in:
dP
2021-09-26 20:30:12 +03:00
parent c9765f712f
commit 4eb8b29dbf
173 changed files with 31125 additions and 9485 deletions

View File

@@ -2586,6 +2586,22 @@ EventState Window::HandleEditBoxKey(int wid, WChar key, uint16 keycode)
return ES_HANDLED;
}
/**
* Handle Toolbar hotkey events - can come from a source like the MacBook Touch Bar.
* @param hotkey Hotkey code
*/
void HandleToolbarHotkey(int hotkey)
{
assert(HasModalProgress() || IsLocalCompany());
Window *w = FindWindowById(WC_MAIN_TOOLBAR, 0);
if (w != nullptr) {
if (w->window_desc->hotkeys != nullptr) {
if (hotkey >= 0 && w->OnHotkey(hotkey) == ES_HANDLED) return;
}
}
}
/**
* Handle keyboard input.
* @param keycode Virtual keycode of the key.