Ignore:
Timestamp:
05/06/13 13:12:28 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Initialize the search text with the pressed key.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/document/interactions.py

    r11450 r11490  
    760760            self.end() 
    761761 
    762     def create_new(self, pos): 
     762    def create_new(self, pos, search_text=""): 
    763763        """ 
    764764        Create a new widget with a `QuickMenu` at `pos` (in screen 
     
    769769        menu.setFilterFunc(None) 
    770770 
    771         action = menu.exec_(pos) 
     771        action = menu.exec_(pos, search_text) 
    772772        if action: 
    773773            item = action.property("item").toPyObject() 
Note: See TracChangeset for help on using the changeset viewer.