Also tunnel :paste-primary

This commit is contained in:
Florian Bruhin 2016-07-05 14:00:59 +02:00
parent 21b282ce29
commit 0719101b6f

View File

@ -1374,7 +1374,8 @@ class CommandDispatcher:
needs_js=True)
def paste_primary(self):
"""Paste the primary selection at cursor position."""
frame = self._current_widget().page().currentFrame()
# FIXME:refactor have a proper API for this
frame = self._current_widget()._widget.page().currentFrame()
try:
elem = webelem.focus_elem(frame)
except webelem.IsNullError: