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/schemeedit.py

    r11488 r11490  
    11201120 
    11211121        handler = None 
     1122        searchText = "" 
    11221123        if (event.key() == Qt.Key_Space and \ 
    11231124                self.__quickMenuTriggers & SchemeEditWidget.SpaceKey): 
     
    11271128                self.__quickMenuTriggers & SchemeEditWidget.AnyKey: 
    11281129            handler = interactions.NewNodeAction(self) 
     1130            searchText = unicode(event.text()) 
     1131 
    11291132            # TODO: set the search text to event.text() and set focus on the 
    11301133            # search line 
     
    11391142                        disabled(self.__undoAction), 
    11401143                        disabled(self.__redoAction)): 
    1141                 handler.create_new(QCursor.pos()) 
     1144                handler.create_new(QCursor.pos(), searchText) 
    11421145 
    11431146            event.accept() 
Note: See TracChangeset for help on using the changeset viewer.