Linux IBus Keyboard Focus Problem Resolved

Greetings,

I found a solution to not getting keyboard focus in any GNU/Linux distro that has IBus enabled (IBus and other input methods). Without this fix, the keyboard cannot be used in the JME3 game applications. I actually found this fix while playing another java game called Spiral Knights (it was on their wiki).

Anyways, in order to get keyboard focus working when launching jme apps from the sdk editor, the sdk editor must be launched with XMODIFIERS configured as shown below.

#!/bin/sh
XMODIFIERS=@im=none /jmonkeyplatform/bin/jmonkeyplatform

I have added this to the jmonkeyplatform sh file. Here is a diff between the new file (that includes the fix) and the old sh file.

diff -c jmonkeyplatform_org jmonkeyplatform_new
*** jmonkeyplatform_org 2010-11-23 07:47:42.000000000 +0800
--- jmonkeyplatform_new 2011-07-22 17:54:27.454429003 +0800
***************
*** 93,99 ****
then
sh=/bin/bash
fi
! eval exec $sh '"$nbexec"'
--jdkhome '"$jdkhome"'
--clusters '"$clusters"'
--userdir '"${userdir}"'
--- 93,99 ----
then
sh=/bin/bash
fi
! eval XMODIFIERS=@im=none exec $sh '"$nbexec"'
--jdkhome '"$jdkhome"'
--clusters '"$clusters"'
--userdir '"${userdir}"'


With this change, the keyboard focus is fixed for linux and ibus users.
Thanks!

@normen: would it be possible to add this?