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:
parent
dc69a90e69
commit
864c95007f
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user