On-Screen-Keyboard | A virtual keyboard application build in Java | Keyboard library
kandi X-RAY | On-Screen-Keyboard Summary
kandi X-RAY | On-Screen-Keyboard Summary
A virtual keyboard application build in Java. Similar to On-Screen Keyboard application in windows.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the components
- Handles a mouse click event
- Performs a hover effect on the key button
- Updates the color of the special keys
- Update nump keys
- Returns true if numLock key is currently pressed
- Initialize the keys
- Entry point
- Set the icon of the button
On-Screen-Keyboard Key Features
On-Screen-Keyboard Examples and Code Snippets
Community Discussions
Trending Discussions on On-Screen-Keyboard
QUESTION
I'm working on an Electron application that is intended to run on a panel touchscreen computer running Debian. I have enabled the on-screen keyboard board in desktop settings and can see it come up in other applications (such as terminal). However, the on screen keyboard does not come up inside of my electron app when a text input gains focus. I have read that this might be some sort of weirdness with Chromium (see https://askubuntu.com/questions/939616/why-the-onboard-on-screen-keyboard-doesnt-auto-show-in-google-chrome) but have unable to find any workarounds. I suppose that my question is in two parts: 1 - is there anything that I can do to get Electron to play nicely with the gnome 3 built in keyboard? 2 - is there any program that I can call that would show and/ or hide the on-screen keyboard?
The OS that I am targeting is Debian version 10.3 with the Gnome desktop.
...ANSWER
Answered 2021-May-10 at 13:52After quite a bit of research, I learned that, in order to trigger the on-screen keyboard for Gnome, an application must be developed around GTK. Any application that fails to do so is considered "foreign" on the Gnome desktop. Apparently, Chrome falls into this category and Electron built apps as well because they are built on Chromium. With all that said, it is still possible for a foreign application to send on-screen keyboard events through dbus. The issue at CentOS On screen keyboard not showing for Jawa Swing Text entry fields describes these events as follows: To turn the keyboard on:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install On-Screen-Keyboard
You can use On-Screen-Keyboard like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the On-Screen-Keyboard component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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