1189 ## interface methods to the standard keyboard command set |
1189 ## interface methods to the standard keyboard command set |
1190 ########################################################################### |
1190 ########################################################################### |
1191 |
1191 |
1192 def clearKeys(self): |
1192 def clearKeys(self): |
1193 """ |
1193 """ |
1194 Protected method to clear the key commands. |
1194 Public method to clear the key commands. |
1195 """ |
1195 """ |
1196 # call into the QsciCommandSet |
1196 # call into the QsciCommandSet |
1197 self.standardCommands().clearKeys() |
1197 self.standardCommands().clearKeys() |
1198 |
1198 |
1199 def clearAlternateKeys(self): |
1199 def clearAlternateKeys(self): |
1200 """ |
1200 """ |
1201 Protected method to clear the alternate key commands. |
1201 Public method to clear the alternate key commands. |
1202 """ |
1202 """ |
1203 # call into the QsciCommandSet |
1203 # call into the QsciCommandSet |
1204 self.standardCommands().clearAlternateKeys() |
1204 self.standardCommands().clearAlternateKeys() |
1205 |
1205 |
1206 ########################################################################### |
1206 ########################################################################### |
1207 ## specialized event handlers |
1207 ## specialized event handlers |
1208 ########################################################################### |
1208 ########################################################################### |
1209 |
1209 |
1210 def focusOutEvent(self, event): |
1210 def focusOutEvent(self, event): |
1211 """ |
1211 """ |
1212 Public method called when the editor loses focus. |
1212 Protected method called when the editor loses focus. |
1213 |
1213 |
1214 @param event event object (QFocusEvent) |
1214 @param event event object (QFocusEvent) |
1215 """ |
1215 """ |
1216 if self.isListActive(): |
1216 if self.isListActive(): |
1217 if event.reason() == Qt.ActiveWindowFocusReason: |
1217 if event.reason() == Qt.ActiveWindowFocusReason: |
1231 |
1231 |
1232 super(QsciScintillaCompat, self).focusOutEvent(event) |
1232 super(QsciScintillaCompat, self).focusOutEvent(event) |
1233 |
1233 |
1234 def event(self, evt): |
1234 def event(self, evt): |
1235 """ |
1235 """ |
1236 Protected method to handle events. |
1236 Public method to handle events. |
1237 |
1237 |
1238 Note: We are not interested in the standard QsciScintilla event |
1238 Note: We are not interested in the standard QsciScintilla event |
1239 handling because we do it our self. |
1239 handling because we do it our self. |
1240 |
1240 |
1241 @param evt event object to handle (QEvent) |
1241 @param evt event object to handle (QEvent) |
1257 """ |
1257 """ |
1258 pass |
1258 pass |
1259 |
1259 |
1260 def inputMethodQuery(self, query): |
1260 def inputMethodQuery(self, query): |
1261 """ |
1261 """ |
1262 Protected method to cope with a glitch in some Qscintilla versions |
1262 Public method to cope with a glitch in some Qscintilla versions |
1263 handling input events. |
1263 handling input events. |
1264 |
1264 |
1265 Note: This simply disables the Qscintilla behavior. |
1265 Note: This simply disables the Qscintilla behavior. |
1266 |
1266 |
1267 @param query reference to the input method query object |
1267 @param query reference to the input method query object |