Details
-
Bug
-
Resolution: Incomplete
-
P4: Low
-
None
-
5.4.0
-
None
Description
Running PyQt5 5.4 through native Weston session on OpenSuSE 13.2.
When using the on-screen keyboard, typing into INPUT fields in a WebView behaves oddly.
1. The text shows up with a yellow background.
2. Pressing TAB on OKS does not do anything.
3. Selecting another field and typing, text continues to append to previous field's content.
4. If you start using a physical keyboard, things get all kinds of confused.
Sample program:
import sys from PyQt5.QtCore import QUrl from PyQt5.QtWidgets import QApplication from PyQt5.QtWebKitWidgets import QWebView app = QApplication(sys.argv) wv = QWebView() wv.setHtml(''' <!DOCTYPE html> <html> <head> <title> Test </title> </head> <body> <form> <p><input type="text" placeholder="field1"></p> <p><input type="text" placeholder="field2"></p> </form> </body> </html> ''', QUrl('http://localhost/')) wv.show() app.exec_()