Export to GitHub

fbterm - issue #10

輸入法熱鍵和 vim, nano 等程式衝突


Posted on Mar 19, 2009 by Grumpy Kangaroo

發現 Ctrl-Space 其實會影響到一些編輯器程式。 ( 已確定有影響的有 vim, nano )。目前在 jfbterm+ucimf 上並沒有產生這個問題,猜想會不會是沒有將用過的 Ctrl-Space 丟掉?

我測試過的版本有 fbterm-1.3 及 fbterm-1.4,使用 gentoo 安裝

我的主機資訊如下: Linux localhost 2.6.26-gentoo-r1 #7 SMP Tue Mar 10 12:50:20 CST 2009 i686 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel GNU/Linux

Comment #1

Posted on Mar 21, 2009 by Happy Horse

try this patch for FbTerm 1.4

Attachments

Comment #2

Posted on Mar 21, 2009 by Grumpy Kangaroo

原本的情況: 進 vim Insert Mode 後,按 Ctrl-Space 就立刻跳出

applied patched 後的情況: 進 vim Insert Mode 後,按 Ctrl-Space ,再按任何一鍵後,就立刻跳出。

Comment #3

Posted on Mar 21, 2009 by Happy Horse

While user pressing down Ctrl-Space to enable IM server, FbTerm 1.4 changes keyboard mode from K_UNICODE to K_MEDIURAW to ask kernel to send raw keycode for next user input. But kernel will first send keycodes of the release Ctrl-Sapce, FbTerms redirects them to IM server, which may cause problem! The attached patch above has fixed this bug.

please debug your IM server to check whether IM server receive correct keycodes and send the correct translated term string to FbTerm.

Comment #4

Posted on Mar 23, 2009 by Grumpy Kangaroo

Cool. I found this cause of the bug, and fixed it in latest libucimf-2.2.7 and fbterm_ucimf-0.2.4. Thank you very much for your support. :-)

Status: Done

Labels:
Type-Defect Priority-Medium Gentoo