Add a small delay on key down for market search (#1123)

* Add a small delay on key down for market search

* prevent a double search if user does something like hit enter in the middle of a timer
This commit is contained in:
Ryan Holmes
2017-04-11 23:30:38 -04:00
committed by GitHub
parent 45a8aaf387
commit ebda1349cf
4 changed files with 34 additions and 9 deletions

View File

@@ -72,14 +72,6 @@ class PFGeneralPref(PreferenceView):
# self.inputFitDB.Bind(wx.EVT_LEAVE_WINDOW, self.OnWindowLeave)
# self.inputGameDB.Bind(wx.EVT_LEAVE_WINDOW, self.OnWindowLeave)
self.m_staticline2 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
mainSizer.Add(self.m_staticline2, 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5)
self.stSubTitleTwo = wx.StaticText(panel, wx.ID_ANY, u"DANGER ZONE!\nUsing these options will permanantly delete data out of the database.",
wx.DefaultPosition, wx.DefaultSize, 0)
self.stSubTitleTwo.Wrap(-1)
mainSizer.Add(self.stSubTitleTwo, 0, wx.ALL, 3)
self.m_staticline3 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
mainSizer.Add(self.m_staticline3, 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5)