Add wasm things to menus, fix up event handling

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-07-10 03:56:35 +01:00
parent d1d08e4704
commit 48a01f0b22
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
6 changed files with 74 additions and 11 deletions

View file

@ -360,6 +360,12 @@ void Scene::onHoverKey(const HoverKeyEvent& e) {
window::generateScreenshot();
e.consume(this);
}
#ifdef DISTRHO_OS_WASM
if (e.key == GLFW_KEY_F11 && (e.mods & RACK_MOD_MASK) == 0) {
APP->window->setFullScreen(!APP->window->isFullScreen());
e.consume(this);
}
#endif
// Module selections
if (e.keyName == "a" && (e.mods & RACK_MOD_MASK) == RACK_MOD_CTRL) {