mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 22:05:20 +01:00
Clicking outside middle should act like clicking the finish button not the adjust selection button
This commit is contained in:
parent
8de5a4ed86
commit
ebb83d97b8
1 changed files with 4 additions and 1 deletions
|
|
@ -540,7 +540,10 @@ def on_keydown(self, ev):
|
|||
|
||||
def container_clicked(self, ev):
|
||||
ev.stopPropagation(), ev.preventDefault()
|
||||
self.hide_middle()
|
||||
if self.middle.style.display is not 'none':
|
||||
self.hide_middle()
|
||||
self.accept()
|
||||
return
|
||||
if self.state is WAITING_FOR_CLICK:
|
||||
pt = map_to_iframe_coords({'x': ev.clientX, 'y': ev.clientY})
|
||||
self.send_message('position-handles-at-point', x=pt.x, y=pt.y)
|
||||
|
|
|
|||
Loading…
Reference in a new issue