Changeset 2e7be0d in sasview for src


Ignore:
Timestamp:
Mar 25, 2019 6:57:28 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
d215517, 17e6a2b
Parents:
a5f7bf4
Message:

Added explicit handler for Escape keystroke

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/SlicerParameters.py

    r2f55df6 r2e7be0d  
    7373        self.model = model 
    7474        self.proxy.setSourceModel(self.model) 
     75 
     76    def keyPressEvent(self, event): 
     77         key = event.key() 
     78 
     79         if key == QtCore.Qt.Key_Escape: 
     80            self.closeWidgetSignal.emit() 
    7581 
    7682    def closeEvent(self, event): 
Note: See TracChangeset for help on using the changeset viewer.