Eclipse无法在Ubuntu上获得关键输入 [英] Eclipse cant get key input on Ubuntu

查看:126
本文介绍了Eclipse无法在Ubuntu上获得关键输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu 12.10和Eclipse Juno。这种情况经常发生:当我将焦点放在eclipse编辑器窗口中时,我可以在编辑器中输入几个字,然后再次撤消几次,突然之间发生的是,我不能在eclipse中输入任何单词,这是奇怪的问题。 / p>

然后,我更改为其他程序并输入任何内容,之后,回到eclipse可以再次接受我的密钥。这让我很沮丧。



任何人都知道这个问题?我正在使用台式电脑,内存是1G。

解决方案

我发现这个问题;方法1,



只是



strong>右键单击eclipse工作区 - > 选择输入法 - > SCIM输入法,没关系。但是,每次打开另一个文件时都应该这样做。



解决方案2,使scim成为默认的系统输入法。
编辑/etc/X11/xinit/xinput.d/scim如下:

  XIM = SCIM 
XIM_PROGRAM = / usr / bin / scim
XIM_ARGS = - d
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON =是
#GTK_IM_MODULE = xim
#QT_IM_MODULE = xim
GTK_IM_MODULE = scim
QT_IM_MODULE = scim

还可以将x95input文件添加到/etc/X11/Xsession.d/ 95xinput

  / usr / bin / scim -d 
XMODIFIERS =@ im = SCIM
export XMODIFIERS
export GTK_IM_MODULE = scim

希望这可以帮助别人。


I'm using Ubuntu 12.10 and Eclipse Juno. This happens frequently: When I put focus in eclipse editor window, I can input few words in editor at the beginning, and then undo several times, Suddenly it happened that, I can't input any word in eclipse, that's strange problem.

Then, I change to other program and input anything, After that, back to eclipse it can accept my key again. It get me so frustrate.

Any one knows this problem? I am using desktop pc, memory is 1G.

解决方案

I found this problem; It is scim input method conflict with XIM(X Input Method) method.

Solution 1,

just right click in eclipse workspace -> select Input Methods -> SCIM input methods, that's OK. But, Every time you should do it while opening another file.

Solution 2, make scim as default system input methods. Edit /etc/X11/xinit/xinput.d/scim as below:

XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim

also, add x95input file to /etc/X11/Xsession.d/95xinput

/usr/bin/scim -d
XMODIFIERS="@im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE=scim

Hope this can help others.

这篇关于Eclipse无法在Ubuntu上获得关键输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆