Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44325

[Wayland] Input fields in WebView don't work with OSK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4: Low
    • None
    • 5.4.0
    • QPA: Wayland
    • 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_()
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            funkybob Curtis Maloney
            funkybob Curtis Maloney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes