mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show an error message when trying to use auto scrolling in paged mode
This commit is contained in:
parent
fc5f471682
commit
9be75841ba
@ -4,6 +4,7 @@ from __python__ import hash_literals
|
|||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
from elementmaker import E
|
from elementmaker import E
|
||||||
|
from gettext import gettext as _
|
||||||
from select import word_at_point
|
from select import word_at_point
|
||||||
|
|
||||||
from dom import set_css
|
from dom import set_css
|
||||||
@ -561,6 +562,12 @@ def handle_shortcut(sc_name, evt):
|
|||||||
if sc_name is 'pagedown':
|
if sc_name is 'pagedown':
|
||||||
scroll_by_page(False, True)
|
scroll_by_page(False, True)
|
||||||
return True
|
return True
|
||||||
|
if sc_name is 'toggle_autoscroll':
|
||||||
|
get_boss().send_message('error', title=_('No auto scroll in paged mode'), msg=_(
|
||||||
|
'Switch to flow mode (Viewer preferences->Page layout) to enable auto'
|
||||||
|
' scrolling')
|
||||||
|
)
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user