mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -80,7 +80,8 @@ class SearchOverlay:
|
||||
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…
x
Reference in New Issue
Block a user