mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-08 09:56:33 +01:00
Viewer: Preselect text in search box when showing it. Fixes #1847677 [New Viewer Search](https://bugs.launchpad.net/calibre/+bug/1847677)
This commit is contained in:
parent
b17b3f358d
commit
5679a596d0
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,8 @@ def hide(self):
|
|||
def show(self):
|
||||
c = self.container
|
||||
c.style.display = 'block'
|
||||
c.querySelector('input').focus()
|
||||
inp = c.querySelector('input')
|
||||
inp.focus(), inp.select()
|
||||
|
||||
def find(self, text, backwards):
|
||||
if not text:
|
||||
|
|
|
|||
Loading…
Reference in a new issue