Menu

#9 from help forum (enter keys) numpad-enter key behaved strang

closed
nobody
None
5
2005-05-02
2005-03-03
No

(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:
......
.....

Discussion

  • Daniel Pozmanter

    • status: open --> closed
     
  • Daniel Pozmanter

    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.

     

Log in to post a comment.