Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problems of handling Keys events

Problems of handling Keys events

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 132 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stuvanya
    wrote on last edited by
    #1

    Hello!
    I have main Item, and all windows, dialogs etc are children of it.
    I have added into it two Key listeners:

        Keys.onPressed: {
            console.log("PRESSED");
            if (event.key === Qt.Key_Back) {
                event.accepted = true;
            }
        }
    
        Keys.onReleased: {
            console.log("RELEASED");
            if (event.key === Qt.Key_Back) {
                event.accepted = true;
                mainScreen.backPressed()
            }
        }
    

    They triggers normally, until focus on some TextInput (Android Keyboard is shownig) and then tap back to close keyboard. How can I fix that?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved