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

QML Shortcut does not work properly with StandardKey sequences

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.0
    • None
    • Windows

    Description

       

      Shortcut { sequence: StandardKey.Undo }

       

      • Prints console warning "QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 11. Use 'sequences: [ <key> ]' to bind to all of them."
      • Its sequence property returns 11.
      • Its nativeText property returns 'CTRL-Z'.
      • Only problem is the wrong console warning, since there seems to be no multiple key bindings.
      Shortcut { sequences: [StandardKey.Undo] }
      • No console warning in this case.
      • Its sequences property returns [11,11].
      • Its nativeText property returns empty string
      • Now that the console warning was avoided, it does not return any native text any more.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            -mtuokko- Mikko Tuokko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes