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
Forum Updated to NodeBB v4.3 + New Features

Problems of handling Keys events

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 134 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 6 Dec 2019, 11:30 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

    1/1

    6 Dec 2019, 11:30

    • Login

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