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. "Right" string does not work for indicating right-arrow in Shortcut-Type
Forum Updated to NodeBB v4.3 + New Features

"Right" string does not work for indicating right-arrow in Shortcut-Type

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 278 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.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by
    #1

    Hey, I am trying to use the Shortcut type with the "Right" key as sequence. For some reason this works:

    Shortcut
    {
        sequences: ["DOWN"]
        onActivated: console.log("works")
    }
    

    But this doesnt:

    Shortcut
    {
        sequences: ["RIGHT"]
        onActivated: console.log("works")
    }
    

    I've looked into the Qt source code and found:
    { Qt::Key_Right, QT_TRANSLATE_NOOP("QShortcut", "Right") },
    in qkeysequence.cpp and I feel like this indicates that "Right" should work, but it doesn't.

    Does anyone have an idea what I did wrong?
    Thanks for any help in advance

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Creaperdown
      wrote on last edited by
      #2

      I found the problem. It was a TextField which I forced active focus on upon completion of a object I used in that window. Removing forcing the focus fixes the problem

      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