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

QKeyEvent should provide unmodifiedText() method

    XMLWordPrintable

Details

    Description

      QtWebKit and QtWebEngine both perform translation of QKeyEvents to internal events of respective browser engine, and both engines assume that key event has a field named "unmodifiedText", which is

      text that would have been generated by the keyboard if no modifiers were pressed (except for Shift); useful for shortcut (accelerator) key handling. Otherwise, same as text().

      (WebKit's definition)

      Particular case where it matters is handling access keys (see QTBUG-64300 and https://github.com/annulen/webkit/issues/594). On macOS key events with modifiers come without text, which breaks access key handling that relies on text (we use text() both as "normal" and "unmodified" text)

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              annulen Konstantin Tokarev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes