File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,6 +403,10 @@ def OnClassifierChoice(self, event):
403403 self .SelectAlgorithm (selectedItem )
404404
405405 def OnSelectAlgorithm (self , event ):
406+ if not isinstance (event .EventObject , wx .Menu ):
407+ # Fix bug: The first bind we make likes to grab any event without a specific target.
408+ event .Skip ()
409+ return
406410 selectedItem = re .sub ('[\W_]+' , '' , self .classifierMenu .FindItemById (event .GetId ()).GetItemLabel ())
407411 self .SelectAlgorithm (selectedItem )
408412
@@ -502,6 +506,9 @@ def OnKey(self, evt):
502506 return
503507 self .unclassifiedBin .tiles [0 ].Select ()
504508 return
509+ elif keycode == ord ('F' ):
510+ self .OnFetch (evt )
511+ return
505512 # convert from keycode to a channel index to match number keypress to channel
506513 # some keyboards match the number 1 to 325; others match 1 to 49
507514 # this conditional accounts for those differences
You can’t perform that action at this time.
0 commit comments