Author Topic: C:B ScintillaWX backspace issue with SCIM input method in Chinese.  (Read 305 times)

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 36
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11279
    • Travis build status
Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
« Reply #1 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...
(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!]

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 36
Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
« Reply #2 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. :)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11279
    • Travis build status
Re: C:B ScintillaWX backspace issue with SCIM input method in Chinese.
« Reply #3 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...
(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!]