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

Input text appears next to Qt window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.1, 6.10.0 Beta3
    • 6.9.0
    • QPA
    • None
    • Firefox 137.0.2 (64-Bit) (flatpak)
    • WebAssembly
    • a27bc0a70 (dev), 7f9a58087 (dev), 1192a9d81 (6.9)

      On the WebAssembly Platform, Qt creates a div with contenteditable="true" around the canvas it paints the window in.

      Unfortunately it is possible to navigate to that div by repeatedly pressing tab, and entering text outside of the Qt window.

      The result looks like this:

      Changing contenteditable to false in the devtools removes the problem.

       

      The relevant code seems to be this: https://github.com/qt/qtbase/blob/30fd101b558112b8829d3ae63b58e8504bbe9297/src/plugins/platforms/wasm/qwasmwindow.cpp#L9 (GitHub for easier linking to the relevant line)

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

            evenandersen Even Oscar Andersen
            jbruechert Jonah Brüchert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: