Overriding StyledTextCtrl control keys?

Hi,

I’m trying to use the StyledTextCtrl, but I don’t like some of the hotkeys (Ctrl D in particular). I have tried using an accelerator table and binding to EVT_CHAR, but this didn’t work. I can bind to EVT_KEY_DOWN and catch it, but I’d rather not spend much time in this event. Can I just trigger the EVT_CHAR from here? If so, how do I do it? Or is there a better way to do this?

Cheers,
Jon

Hello,

···

On Oct 2, 2008, at 7:27 PM, Jon Raiford wrote:

Hi,

I'm trying to use the StyledTextCtrl, but I don't like some of the hotkeys (Ctrl D in particular). I have tried using an accelerator table and binding to EVT_CHAR, but this didn't work. I can bind to EVT_KEY_DOWN and catch it, but I'd rather not spend much time in this event. Can I just trigger the EVT_CHAR from here? If so, how do I do it? Or is there a better way to do this?

See: wx.stc.StyledTextCtrl.CmdKeyClear, CmdKeyAssign, CmdKeyExecute, ect...

Cody

Hello,

Hi,

I’m trying to use the StyledTextCtrl, but I don’t like some of the hotkeys (Ctrl D in particular). I have tried using an accelerator table and binding to EVT_CHAR, but this didn’t work. I can bind to EVT_KEY_DOWN and catch it, but I’d rather not spend much time in this event. Can I just trigger the EVT_CHAR from here? If so, how do I do it? Or is there a better way to do this?

See: wx.stc.StyledTextCtrl.CmdKeyClear, CmdKeyAssign, CmdKeyExecute, ect…

Could you change it enough to implement fully functional emacs keybindings? :wink:

(just joking)

–Tim

···

On Fri, Oct 3, 2008 at 2:34 AM, Cody Precord codyprecord@gmail.com wrote:

On Oct 2, 2008, at 7:27 PM, Jon Raiford wrote:

Cody


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users