from help forum (enter keys) numpad-enter key behaved strang
Brought to you by:
drpython
(I use -> for tabs, because after posting, all tab
disappear)
->def OnKeyDown(self, event):
->->#catch numpad_enter before, because
wx.WXK_NUMPAD_ENTER isn't processed properly
->->if event.GetKeyCode() == wx.stc.wx.WXK_NUMPAD_ENTER:
->->->result = wx.stc.wx.WXK_NUMPAD_ENTER
->->->self.CmdKeyExecute(wx.stc.STC_CMD_NEWLINE)
->->else:
->->->result = self.grandparent.RunShortcuts(event,
self, self.DisableShortcuts)
->->if result > -1:
->->->if (result == wx.stc.STC_CMD_NEWLINE or result ==
wx.stc.wx.WXK_NUMPAD_ENTER) and
(self.grandparent.prefs.docautoindent):
->->->->self._autoindent()
->->->if result == wx.stc.STC_CMD_TAB:
......
.....
Logged In: YES
user_id=796750
Not used. The behaviour of numpad_enter is changed in
RunShortcuts, so it always acts the same way as enter.