Pass caret tests
This commit is contained in:
parent
890e26b2b5
commit
5f1e0224a9
@ -885,7 +885,6 @@ class CommandDispatcher:
|
||||
message.info("{} {} yanked to {}".format(
|
||||
len(s), "char" if len(s) == 1 else "chars", target))
|
||||
if not self.yank_object['keep']:
|
||||
log.procs.debug(self.yank_object['keep'])
|
||||
modeman.leave(self._win_id, KeyMode.caret, "yank selected",
|
||||
maybe=True)
|
||||
self.yank_object = None
|
||||
|
@ -284,7 +284,7 @@ class WebEngineCaret(browsertab.AbstractCaret):
|
||||
# WORKAROUND for
|
||||
# https://bugreports.qt.io/browse/QTBUG-53134
|
||||
self._tab.run_js_async(
|
||||
'window.getSelection().toString()', callback)
|
||||
javascript.assemble('caret', 'getSelection'), callback)
|
||||
|
||||
def _follow_selected_cb(self, js_elem, tab=False):
|
||||
"""Callback for javascript which clicks the selected element.
|
||||
|
@ -1051,7 +1051,7 @@ window._qutebrowser.caret = (function() { // eslint-disable-line max-statements,
|
||||
|
||||
funcs.moveToEndOfDocument = () => {
|
||||
CaretBrowsing.move("forward", "documentboundary");
|
||||
window.scrollTo(0, document.body.scrollHeight);
|
||||
funcs.moveLeft();
|
||||
};
|
||||
|
||||
funcs.dropSelection = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user