Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

C:B ScintillaWX backspace issue with SCIM input method in Chinese.

(1/1)

kipade:
When I hit backspace while typing chinese, there was no sense for C:B.
But, I found a valid fix method on the Ubuntu forum:
http://forum.ubuntu.org.cn/viewtopic.php?t=188180

--- Quote ---1、before void ScintillaWX::DoAddChar(int key) { , insert a static int variable:
static int f_keynum=0;

2、at the tail of void ScintillaWX::DoAddChar(int key) , add its resetting code:
f_keynum=0;

3、at the head of void SCintillaWX::DoKeyDown() :
if(key != WXK_BACK)
f_keynum++;

4、within the processing of void SCintillaWX::DoKeyDown() for WXK_BACK :
case WXK_BACK:
key = SCK_BACK;
if(f_keynum)
{
f_keynum--;
return 0;
}
break;
--- End quote ---

this modification make it OK, no matter the code is beautiful or not.
I hope some body can test it if its OK or not for WIN.
Also, hope the maintainer to fix the issue.

oBFusCATed:
Does it happen with the stc sample in wxwidgets compiled with master. We're tracking the code in wxwidgets at the moment. So if it doesn't happen there we can backport their fix.
My guess is that the problem would happen there.

I have no idea how to test this...

kipade:
I have tried the stc sample within the official wxWidgets master source code, it has the same issue.
In my opion, C:B can be better then the sample which is just a demo, C:B is a production.
I will use C:B as my daily working IDE.
And, I tried fcitx, it works fine with C:B.
If so, I am giving up the original input method tool, scim, I used it up to dozen years, and switch
to fctix.
Also, hope C:B to be better and better. :)

oBFusCATed:
If you don't report this problem in trac.wxwidgets.org C::B won't get better...

Navigation

[0] Message Index

Go to full version