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

Shift modifier doesn't work on macOS with TestCase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4
    • Testing: QuickTest
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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