How do I get the accent-key feature to work with Java based applications?

0

I'm using Fedora 18 with Gnome 3.6, my keyboard layout settings is English (US). When I need to write accented characters, I use the compose key (right-alt) plus the accent key (`) followed by the vowel I want to be accented. It works fine in all applications except in those that are java based. Anyone knows how to solve this issue?

Manuel Bitto

Posted 2013-02-24T10:10:43.857

Reputation: 1

How is the compose key defined? I have another setup (Debian/KDE), but compose does work here in java applicatiosn when defined via ~/.Xmodmap: keysym Super_R = Multi_key (that's the windows context menu key). Perhaps you can give that a try, too. – mpy – 2013-03-03T11:05:15.383

Answers

1

Set the XMODIFIERS variable to "":

$ env XMODIFIERS="" java -jar your_java_application.jar

Or:

$ export XMODIFIERS=""

$ java -jar your_java_application.jar

But in the later case, XMODIFIERS variable will remain modified after exiting the java application, and may be other commands need it in its default value.

I learnt this trick here: https://devnet.jetbrains.com/message/5485348;jsessionid=AC90E67E77944B70A337D368B22A788A#5485348

Ignacio

Posted 2013-02-24T10:10:43.857

Reputation: 11

Not only fixes problems with compose key. In my case it fixed problem with not working deadkey (Kubuntu 14.04). – ñull – 2016-06-15T19:15:32.200

0

Try exporting the AWT_TOOLKIT environment variable this way

export AWT_TOOLKIT=MToolkit

Andrea de Palo

Posted 2013-02-24T10:10:43.857

Reputation: 209

Just tried, It does not work. – Manuel Bitto – 2013-03-01T13:23:24.440

have you tried exporting the variable from a terminal and then launching your java application from the same terminal? – Andrea de Palo – 2013-03-01T19:16:44.580

Tried, doesn't work :( – Manuel Bitto – 2013-03-01T19:56:28.270