Enable caret only when mode is 'caret'
This commit is contained in:
parent
dc8c919c30
commit
c4e50369e7
@ -202,6 +202,9 @@ class WebEngineCaret(browsertab.AbstractCaret):
|
|||||||
|
|
||||||
@pyqtSlot(usertypes.KeyMode)
|
@pyqtSlot(usertypes.KeyMode)
|
||||||
def _on_mode_entered(self, mode):
|
def _on_mode_entered(self, mode):
|
||||||
|
if mode != usertypes.KeyMode.caret:
|
||||||
|
return
|
||||||
|
|
||||||
self._tab.run_js_async(
|
self._tab.run_js_async(
|
||||||
javascript.assemble('caret', 'setInitialCursor',
|
javascript.assemble('caret', 'setInitialCursor',
|
||||||
platform.platform()))
|
platform.platform()))
|
||||||
|
Loading…
Reference in New Issue
Block a user