More win32
workarounds
This commit is contained in:
parent
25545617a0
commit
c9d47ae92a
@ -1505,9 +1505,13 @@ class CommandDispatcher:
|
|||||||
"""
|
"""
|
||||||
webview = self._current_widget()
|
webview = self._current_widget()
|
||||||
if not webview.selection_enabled:
|
if not webview.selection_enabled:
|
||||||
act = [QWebPage.MoveToNextWord, QWebPage.MoveToNextChar]
|
act = [QWebPage.MoveToNextWord]
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
act.append(QWebPage.MoveToNextChar)
|
||||||
else:
|
else:
|
||||||
act = [QWebPage.SelectNextWord, QWebPage.SelectNextChar]
|
act = [QWebPage.SelectNextWord]
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
act.append(QWebPage.SelectNextChar)
|
||||||
for _ in range(count):
|
for _ in range(count):
|
||||||
for a in act:
|
for a in act:
|
||||||
webview.triggerPageAction(a)
|
webview.triggerPageAction(a)
|
||||||
|
Loading…
Reference in New Issue
Block a user