Ignore input key repeats

This commit is contained in:
falkTX 2021-11-06 23:49:16 +00:00
parent b5444c6e88
commit f2bdbd8061

View file

@ -98,7 +98,10 @@ public:
fContext(getRackContextFromPlugin(getPluginInstancePointer())), fContext(getRackContextFromPlugin(getPluginInstancePointer())),
fResizeHandle(this) fResizeHandle(this)
{ {
fContext->nativeWindowId = getWindow().getNativeWindowHandle(); Window& window(getWindow());
window.setIgnoringKeyRepeat(true);
fContext->nativeWindowId = window.getNativeWindowHandle();
if (isResizable()) if (isResizable())
fResizeHandle.hide(); fResizeHandle.hide();
@ -115,7 +118,7 @@ public:
if (fContext->scene->menuBar != nullptr) if (fContext->scene->menuBar != nullptr)
fContext->scene->removeChild(fContext->scene->menuBar); fContext->scene->removeChild(fContext->scene->menuBar);
fContext->scene->menuBar = rack::app::createMenuBar(getWindow(), getApp().isStandalone()); fContext->scene->menuBar = rack::app::createMenuBar(window, getApp().isStandalone());
fContext->scene->addChildBelow(fContext->scene->menuBar, fContext->scene->rackScroll); fContext->scene->addChildBelow(fContext->scene->menuBar, fContext->scene->rackScroll);
fContext->window->step(); fContext->window->step();