mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 02:10:24 +00:00
Add Ctrl-L shortcut to highlight URL.
This commit is contained in:
parent
8e448604d1
commit
19f0bbe7ce
2 changed files with 12 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
7.5 "" (released xx.xx.2012)
|
||||
|
||||
Features:
|
||||
- gui: add Ctrl-L shortcut to highlight the URL input.
|
||||
|
||||
|
||||
7.4 "Warrior" (released 07.01.2012)
|
||||
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
|
|||
self.init_url(url)
|
||||
self.init_treeview()
|
||||
self.connect_widgets()
|
||||
self.init_shortcuts()
|
||||
self.init_config()
|
||||
self.read_config()
|
||||
self.init_menu()
|
||||
|
|
@ -179,6 +180,14 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
|
|||
self.options.editor.saved.connect(self.read_config)
|
||||
self.log_status_signal.connect(self.log_status)
|
||||
|
||||
def init_shortcuts (self):
|
||||
"""Configure application shortcuts."""
|
||||
def selectUrl():
|
||||
self.urlinput.setFocus()
|
||||
self.urlinput.selectAll()
|
||||
shortcut = QtGui.QShortcut(QtGui.QKeySequence("Ctrl+L"), self)
|
||||
shortcut.activated.connect(selectUrl)
|
||||
|
||||
def init_treeview (self):
|
||||
"""Set treeview model and layout."""
|
||||
self.model = UrlItemModel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue