This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
ProM
mirror of
https://github.com/DISTRHO/ProM
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Force keyboard focus when clicking on UI
master
falkTX
3 years ago
parent
8a339464c8
commit
cb8cb9f224
2 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
plugins/ProM/DistrhoUIProM.cpp
+1
-0
plugins/ProM/DistrhoUIProM.hpp
+ 8
- 0
plugins/ProM/DistrhoUIProM.cpp
View File
@@ -297,6 +297,14 @@ bool DistrhoUIProM::onKeyboard(const KeyboardEvent& ev)
return true;
}
bool DistrhoUIProM::onMouse(const MouseEvent& ev)
{
if (ev.press)
getWindow().focus();
return false;
}
// -----------------------------------------------------------------------
UI* createUI()
+ 1
- 0
plugins/ProM/DistrhoUIProM.hpp
View File
@@ -49,6 +49,7 @@ protected:
void onDisplay() override;
bool onKeyboard(const KeyboardEvent&) override;
bool onMouse(const MouseEvent& ev) override;
private:
ScopedPointer<projectM> fPM;
Write
Preview
Loading…
Cancel
Save