116 else: |
116 else: |
117 self.alternateKeyEdit.setText(txt) |
117 self.alternateKeyEdit.setText(txt) |
118 |
118 |
119 def eventFilter(self, watched, event): |
119 def eventFilter(self, watched, event): |
120 """ |
120 """ |
121 Method called to filter the event queue. |
121 Public method called to filter the event queue. |
122 |
122 |
123 @param watched the QObject being watched |
123 @param watched the QObject being watched |
124 @param event the event that occurred |
124 @param event the event that occurred |
125 @return always False |
125 @return always False |
126 """ |
126 """ |
130 |
130 |
131 return False |
131 return False |
132 |
132 |
133 def keyPressEvent(self, evt): |
133 def keyPressEvent(self, evt): |
134 """ |
134 """ |
135 Private method to handle a key press event. |
135 Protected method to handle a key press event. |
136 |
136 |
137 @param evt the key event (QKeyEvent) |
137 @param evt the key event (QKeyEvent) |
138 """ |
138 """ |
139 if evt.key() in [Qt.Key_Control, Qt.Key_Meta, Qt.Key_Shift, Qt.Key_Alt, |
139 if evt.key() in [Qt.Key_Control, Qt.Key_Meta, Qt.Key_Shift, Qt.Key_Alt, |
140 Qt.Key_Menu, Qt.Key_Hyper_L, Qt.Key_Hyper_R, |
140 Qt.Key_Menu, Qt.Key_Hyper_L, Qt.Key_Hyper_R, |