mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Halted key event passing during hot key editing
This commit is contained in:
parent
569adce11b
commit
4fca72f556
@ -137,6 +137,7 @@ class HotKeyPanel(ScrolledPanel):
|
||||
self.SetupScrolling(self, scroll_y=True, rate_y=20)
|
||||
|
||||
def onEdit(self, evt, key):
|
||||
base.le.ui.wxApp.Unbind(wx.EVT_CHAR)
|
||||
editUI = EditHotKeyDialog(self, -1, 'Edit Hot Key', key)
|
||||
editUI.ShowModal()
|
||||
editUI.Destroy()
|
||||
@ -145,7 +146,7 @@ class HotKeyPanel(ScrolledPanel):
|
||||
if sizer is not None:
|
||||
sizer.DeleteWindows()
|
||||
self.SetSizer(None)
|
||||
|
||||
base.le.ui.wxApp.Bind(wx.EVT_CHAR, base.le.ui.onKeyEvent)
|
||||
self.updateUI()
|
||||
|
||||
class HotKeyUI(wx.Dialog):
|
||||
|
Loading…
x
Reference in New Issue
Block a user