More win32 workarounds

This commit is contained in:
Artur Shaik 2015-12-01 16:53:07 +06:00
parent 25545617a0
commit c9d47ae92a

View File

@ -1505,9 +1505,13 @@ class CommandDispatcher:
"""
webview = self._current_widget()
if not webview.selection_enabled:
act = [QWebPage.MoveToNextWord, QWebPage.MoveToNextChar]
act = [QWebPage.MoveToNextWord]
if sys.platform != 'win32':
act.append(QWebPage.MoveToNextChar)
else:
act = [QWebPage.SelectNextWord, QWebPage.SelectNextChar]
act = [QWebPage.SelectNextWord]
if sys.platform != 'win32':
act.append(QWebPage.SelectNextChar)
for _ in range(count):
for a in act:
webview.triggerPageAction(a)