mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:03:44 +02:00
Show an error message when trying to use auto scrolling in paged mode
This commit is contained in:
parent
fc5f471682
commit
9be75841ba
1 changed files with 7 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
import traceback
|
||||
from elementmaker import E
|
||||
from gettext import gettext as _
|
||||
from select import word_at_point
|
||||
|
||||
from dom import set_css
|
||||
|
|
@ -561,6 +562,12 @@ def handle_shortcut(sc_name, evt):
|
|||
if sc_name is 'pagedown':
|
||||
scroll_by_page(False, 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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue