scroll-page: Add custom metavar for navigate-*.

This commit is contained in:
Florian Bruhin 2015-05-31 15:10:35 +02:00
parent cdde1d7dfc
commit 6b550defae

View File

@ -644,8 +644,10 @@ class CommandDispatcher:
@cmdutils.register(instance='command-dispatcher', hide=True, @cmdutils.register(instance='command-dispatcher', hide=True,
scope='window', count='count') scope='window', count='count')
def scroll_page(self, x: {'type': float}, y: {'type': float}, *, def scroll_page(self, x: {'type': float}, y: {'type': float}, *,
top_navigate: {'type': ('prev', 'decrement')}=None, top_navigate: {'type': ('prev', 'decrement'),
bottom_navigate: {'type': ('next', 'increment')}=None, 'metavar': 'ACTION'}=None,
bottom_navigate: {'type': ('next', 'increment'),
'metavar': 'ACTION'}=None,
count=1): count=1):
"""Scroll the frame page-wise. """Scroll the frame page-wise.