Ignore input key repeats
This commit is contained in:
parent
b5444c6e88
commit
f2bdbd8061
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue