Unhide :insert-text and allow outside insert mode

:insert-text works if a text element is focused, even outside insert
mode.
This commit is contained in:
Jan Verbeek 2016-08-07 14:29:52 +02:00
parent dc69a90e69
commit 864c95007f

View File

@ -1437,8 +1437,8 @@ class CommandDispatcher:
self.insert_text(utils.get_clipboard())
@cmdutils.register(instance='command-dispatcher', maxsplit=0,
modes=[KeyMode.insert], hide=True, scope='window',
needs_js=True, backend=usertypes.Backend.QtWebKit)
scope='window', needs_js=True,
backend=usertypes.Backend.QtWebKit)
def insert_text(self, text):
"""Insert text at cursor position.