HotkeyListener | A library for registering system-wide hotkeys that can be used to trigger features in .NET applicati | Keyboard library
kandi X-RAY | HotkeyListener Summary
kandi X-RAY | HotkeyListener Summary
HotkeyListener is a .NET library that allows registering system-wide hotkeys that can be used to trigger features in .NET applications. It also provides support for enabling standard Windows and User controls to select hotkeys at runtime.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of HotkeyListener
HotkeyListener Key Features
HotkeyListener Examples and Code Snippets
Community Discussions
Trending Discussions on HotkeyListener
QUESTION
So I'm trying to make my JavaFX Application visible, if I press CTRL + Alt + D (I'm using jkeymaster). But everytime I write Stage.show(); in my HotKeyListener I get Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Not on FX application thread; currentThread = AWT-EventQueue-0 (line 7)
(I also tested to show a file chooser in my hot key listener and outside of the listener and if I do the second thing I get no error). And also if I just put System.out.println("Test")
in my hot key listener without the other things it just outputs it and I get no error
ANSWER
Answered 2020-Sep-11 at 12:19If you try wrapping the contents of the HotKeyListener
in a call to Platform.runLater()
this should fix it. Since you're modifying the JavaFX Scene graph, this work must be done on the Application thread.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install HotkeyListener
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page