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

Shift modifier doesn't work on macOS with TestCase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.4
    • Fix Version/s: None
    • Component/s: Testing: QuickTest
    • Labels:
      None

      Description

      import QtQuick
      import QtTest
      
      TestCase {
          id: testCase
          width: 400
          height: 400
          visible: true
          when: windowShown
          name: "Test"
      
          Component {
              id: textFieldComponent
              TextInput {}
          }
      
          function test_textFieldShift() {
              let control = createTemporaryObject(textFieldComponent, testCase)
              verify(control)
      
              control.forceActiveFocus()
      
              keyClick(Qt.Key_B, Qt.ShiftModifier)
      
      //        keyPress(Qt.Key_B, Qt.ShiftModifier)
      //        keyRelease(Qt.Key_B, Qt.ShiftModifier)
      
      //        keyPress(Qt.Key_Shift)
      //        keyClick(Qt.Key_B)
      //        keyRelease(Qt.Key_Shift)
      
              compare(control.text, "B")
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes