News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

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

Started by kipade, November 14, 2018, 01:21:55 AM

Previous topic - Next topic

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;

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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]