Commit b338b82 David Stirling
committed
1 parent ae6cae8 commit b338b82 Copy full SHA for b338b82
File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,10 @@ def OnClassifierChoice(self, event):
403
403
self .SelectAlgorithm (selectedItem )
404
404
405
405
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
406
410
selectedItem = re .sub ('[\W_]+' , '' , self .classifierMenu .FindItemById (event .GetId ()).GetItemLabel ())
407
411
self .SelectAlgorithm (selectedItem )
408
412
@@ -502,6 +506,9 @@ def OnKey(self, evt):
502
506
return
503
507
self .unclassifiedBin .tiles [0 ].Select ()
504
508
return
509
+ elif keycode == ord ('F' ):
510
+ self .OnFetch (evt )
511
+ return
505
512
# convert from keycode to a channel index to match number keypress to channel
506
513
# some keyboards match the number 1 to 325; others match 1 to 49
507
514
# this conditional accounts for those differences
You can’t perform that action at this time.
0 commit comments