Hi,
I have an application that requires alpha-numeric input, but
for which no physical keyboard will be present.
Thus, I am developing a virtual keyboard.
I used the InputMethod framework and was successful on
Win32 platforms. But, it doesn't work on Linux because
the textfield needing data entry loses focus even though
the keyboard (inputMethod window) does not gain focus.
So, I was thinking of using the Accessibility API to keep
track of which textfield had focus last. Then perhaps the
keyboard (inputMethod window) could do a show on
the main application window follow by a grabFocus()
by the last textfield that had focus. Then a KeyEvent
could be sent. Has anyone tried anything like this?
If so, did it work?
Thanks,
I have an application that requires alpha-numeric input, but
for which no physical keyboard will be present.
Thus, I am developing a virtual keyboard.
I used the InputMethod framework and was successful on
Win32 platforms. But, it doesn't work on Linux because
the textfield needing data entry loses focus even though
the keyboard (inputMethod window) does not gain focus.
So, I was thinking of using the Accessibility API to keep
track of which textfield had focus last. Then perhaps the
keyboard (inputMethod window) could do a show on
the main application window follow by a grabFocus()
by the last textfield that had focus. Then a KeyEvent
could be sent. Has anyone tried anything like this?
If so, did it work?
Thanks,