From f2bdbd8061a6ba5ea99f52fbb90d94293e8b3292 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 Nov 2021 23:49:16 +0000 Subject: [PATCH] Ignore input key repeats --- src/CardinalUI.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CardinalUI.cpp b/src/CardinalUI.cpp index cc946a6..4a66301 100644 --- a/src/CardinalUI.cpp +++ b/src/CardinalUI.cpp @@ -98,7 +98,10 @@ public: fContext(getRackContextFromPlugin(getPluginInstancePointer())), fResizeHandle(this) { - fContext->nativeWindowId = getWindow().getNativeWindowHandle(); + Window& window(getWindow()); + + window.setIgnoringKeyRepeat(true); + fContext->nativeWindowId = window.getNativeWindowHandle(); if (isResizable()) fResizeHandle.hide(); @@ -115,7 +118,7 @@ public: if (fContext->scene->menuBar != nullptr) 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->window->step();