mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Clicking selection bar buttons should not steal focus from iframe
This commit is contained in:
parent
cbdaad0003
commit
cbbcec8525
@ -38,7 +38,10 @@ class SelectionBar:
|
||||
|
||||
def cb(icon, tooltip, callback):
|
||||
ans = svgicon(icon, '3ex', '3ex', tooltip)
|
||||
ans.addEventListener('click', callback)
|
||||
ans.addEventListener('click', def(ev):
|
||||
callback(ev)
|
||||
self.view.focus_iframe()
|
||||
)
|
||||
ans.classList.add('simple-link')
|
||||
ans.style.marginLeft = ans.style.marginRight = '0.5rem'
|
||||
return ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user