- added Find function in Tcl Shell (will search for either the selected text in the command line or for the one stored on the clipboard)
This commit is contained in:
@@ -3865,6 +3865,7 @@ class _BrowserTextEdit(QTextEdit):
|
||||
self.menu = None
|
||||
self.version = version
|
||||
self.app = app
|
||||
self.find_text = lambda: None
|
||||
|
||||
def contextMenuEvent(self, event):
|
||||
# self.menu = self.createStandardContextMenu(event.pos())
|
||||
@@ -3884,6 +3885,12 @@ class _BrowserTextEdit(QTextEdit):
|
||||
self.menu.addAction(sel_all_action)
|
||||
sel_all_action.triggered.connect(self.selectAll)
|
||||
|
||||
find_action = QAction('%s\t%s' % (_("Find"), _('Ctrl+F')), self)
|
||||
self.menu.addAction(find_action)
|
||||
find_action.triggered.connect(self.find_text)
|
||||
|
||||
self.menu.addSeparator()
|
||||
|
||||
if self.app:
|
||||
save_action = QAction('%s\t%s' % (_("Save Log"), _('Ctrl+S')), self)
|
||||
# save_action.setShortcut(QKeySequence(Qt.Key_S))
|
||||
@@ -3913,6 +3920,9 @@ class _BrowserTextEdit(QTextEdit):
|
||||
# Copy Text
|
||||
elif key == QtCore.Qt.Key_C:
|
||||
self.copy_text()
|
||||
# Copy Text
|
||||
elif key == QtCore.Qt.Key_F:
|
||||
self.find_text()
|
||||
# Save Log
|
||||
elif key == QtCore.Qt.Key_S:
|
||||
if self.app:
|
||||
|
||||
Reference in New Issue
Block a user