Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: kipade on November 14, 2018, 01:21:55 am

Title: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
Post by: kipade on November 14, 2018, 01:21:55 am
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.
Title: Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
Post by: oBFusCATed on November 14, 2018, 09:38:49 am
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...
Title: Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
Post by: kipade on November 15, 2018, 01:49:41 am
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. :)
Title: Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
Post by: oBFusCATed on November 15, 2018, 08:26:50 am
If you don't report this problem in trac.wxwidgets.org C::B won't get better...