Revert "Restore focus to webview after clicking tab-bg"
This reverts commit 262cea8e75
.
This commit is contained in:
parent
bc9f178a08
commit
538b4fafdb
@ -210,10 +210,10 @@ class HintActions:
|
|||||||
else:
|
else:
|
||||||
target_mapping[Target.tab] = usertypes.ClickTarget.tab
|
target_mapping[Target.tab] = usertypes.ClickTarget.tab
|
||||||
|
|
||||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
|
||||||
window=self._win_id)
|
|
||||||
if context.target in [Target.normal, Target.current]:
|
if context.target in [Target.normal, Target.current]:
|
||||||
# Set the pre-jump mark ', so we can jump back here after following
|
# Set the pre-jump mark ', so we can jump back here after following
|
||||||
|
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||||
|
window=self._win_id)
|
||||||
tabbed_browser.set_mark("'")
|
tabbed_browser.set_mark("'")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -227,10 +227,6 @@ class HintActions:
|
|||||||
except webelem.Error as e:
|
except webelem.Error as e:
|
||||||
raise HintingError(str(e))
|
raise HintingError(str(e))
|
||||||
|
|
||||||
if context.target == Target.tab_bg:
|
|
||||||
# We lost focus when clicking in the background, get it back.
|
|
||||||
tabbed_browser.widget.currentWidget().setFocus()
|
|
||||||
|
|
||||||
def yank(self, url, context):
|
def yank(self, url, context):
|
||||||
"""Yank an element to the clipboard or primary selection.
|
"""Yank an element to the clipboard or primary selection.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user