[qcineoob] ctrl+l to get focus on search edit, don't go on middle click opened tab
This commit is contained in:
parent
515d4b8990
commit
efa452098b
1 changed files with 4 additions and 1 deletions
|
|
@ -371,6 +371,10 @@ class MainWindow(QtMainWindow):
|
||||||
w = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_W), self)
|
w = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_W), self)
|
||||||
self.connect(w, SIGNAL("activated()"), self.closeCurrentTab)
|
self.connect(w, SIGNAL("activated()"), self.closeCurrentTab)
|
||||||
|
|
||||||
|
l = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_L), self)
|
||||||
|
self.connect(l, SIGNAL("activated()"), self.ui.searchEdit.setFocus)
|
||||||
|
self.connect(l, SIGNAL("activated()"), self.ui.searchEdit.selectAll)
|
||||||
|
|
||||||
self.connect(self.ui.resultsTab, SIGNAL("tabCloseRequested(int)"), self.closeTab)
|
self.connect(self.ui.resultsTab, SIGNAL("tabCloseRequested(int)"), self.closeTab)
|
||||||
|
|
||||||
self.loadBackendsList()
|
self.loadBackendsList()
|
||||||
|
|
@ -425,7 +429,6 @@ class MainWindow(QtMainWindow):
|
||||||
stype = 'torrent'
|
stype = 'torrent'
|
||||||
new_res = Result(self.weboob, self.app, self)
|
new_res = Result(self.weboob, self.app, self)
|
||||||
self.ui.resultsTab.addTab(new_res, txt)
|
self.ui.resultsTab.addTab(new_res, txt)
|
||||||
self.ui.resultsTab.setCurrentWidget(new_res)
|
|
||||||
new_res.searchId(id, stype)
|
new_res.searchId(id, stype)
|
||||||
|
|
||||||
def search(self):
|
def search(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue