Browse Source

Ignore input key repeats

tags/22.02
falkTX 4 years ago
parent
commit
f2bdbd8061
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/CardinalUI.cpp

+ 5
- 2
src/CardinalUI.cpp 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();


Loading…
Cancel
Save