Code::Blocks Forums

User forums => Help => Topic started by: rickg22 on March 23, 2008, 03:35:33 am

Title: numpad del doesn't work in Linux...
Post by: rickg22 on March 23, 2008, 03:35:33 am
in my current install, i can't use the numpad Del key to delete a character. Whenever I press it, a "Ɓ" character shows up. Any idea of why it would happen? Other wxGTK apps don't do that, only CB. Please help :(
Title: Re: numpad del doesn't work in Linux...
Post by: rickg22 on March 23, 2008, 03:40:24 am
I found a fix...

in ScintillaWX.cpp:

Code
    case WXK_DELETE:            key = SCK_DELETE;   break;

Prepend the following line:
Code
    case WXK_NUMPAD_DELETE:

And it works now :)
Title: Re: numpad del doesn't work in Linux...
Post by: JGM on March 23, 2008, 04:39:06 am
without noticing you are becoming an active developer again!  :D
Title: Re: numpad del doesn't work in Linux...
Post by: killerbot on March 23, 2008, 10:31:55 pm
applied this, and did similar thing for the numeric keypad 'insert' :-)
Title: Re: numpad del doesn't work in Linux...
Post by: troels on March 23, 2008, 11:14:34 pm
This was fixed 1.5 years ago in wxWidgets
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_2_8_BRANCH/contrib/src/stc/ScintillaWX.cpp?r1=40721&r2=41374 (http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_2_8_BRANCH/contrib/src/stc/ScintillaWX.cpp?r1=40721&r2=41374)
Title: Re: numpad del doesn't work in Linux...
Post by: killerbot on March 23, 2008, 11:51:39 pm
I think we should really sort out, what version we should be using of scintilla and wxScintilla. Kind of stupid we are fixing bugs that are fixed ages ago :-(

@Yiannis : what do you think ? We go for a massive update of these components ?
Title: Re: numpad del doesn't work in Linux...
Post by: rickg22 on March 24, 2008, 02:13:34 am
I think that independently of what wxWhatever container we use for Scintilla, we should always use the latest version of scintilla and patch it according to our needs (it'd be better if we used additional files for our new functions so future versions don't have to be repatched).