Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. disable alt-menu-shortcuts systemwide?
Forum Updated to NodeBB v4.3 + New Features

disable alt-menu-shortcuts systemwide?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.1k Views 3 Watching
  • 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.
  • adabruA Offline
    adabruA Offline
    adabru
    wrote on last edited by
    #1

    The qt-based text editor I am using has menu-accelerators/mnemonics that are eating alt-shortcuts I'd like to use otherwise (i.e. featherpad and alt-s, alt-f).

    Is there a possibility to globally disable alt-shortcuts for qt, e.g. with a ~/.config/qt5.conf or a export QT_DISABLE_MENU_ACCELERATORS=1?

    Or do I have to contact the qt-application maintainer and ask them to provide an option to disable them?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums.

      I have not seen such an option.

      Do you mean for featherpad, you would like to use the preassigned alt+XX for something else
      in the same app ?

      adabruA 1 Reply Last reply
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        You can use qt_set_sequence_auto_mnemonic. Set it to false and it will disable handling of all accelerators (menus, labels etc.).

        mrjjM 1 Reply Last reply
        1
        • Chris KawaC Chris Kawa

          You can use qt_set_sequence_auto_mnemonic. Set it to false and it will disable handling of all accelerators (menus, labels etc.).

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Chris-Kawa
          hi.
          But to use this - the app must be recompiled or ?

          Chris KawaC 1 Reply Last reply
          1
          • mrjjM mrjj

            @Chris-Kawa
            hi.
            But to use this - the app must be recompiled or ?

            Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @mrjj said in disable alt-menu-shortcuts systemwide?:

            But to use this - the app must be recompiled or ?

            Ah, yes, sorry, I misunderstood the question. For existing application I don't know of a way.

            1 Reply Last reply
            0
            • mrjjM mrjj

              Hi and welcome to the forums.

              I have not seen such an option.

              Do you mean for featherpad, you would like to use the preassigned alt+XX for something else
              in the same app ?

              adabruA Offline
              adabruA Offline
              adabru
              wrote on last edited by
              #6

              @mrjj and @Chris-Kawa , thank you for your fast replies.
              @mrjj yes exactly. The "preassignment" comes from the menu mnemonics. The application allows to configure custom alt+XX shortcuts, but they don't overwrite the menu mnemonics. I will contact the application developer with an issue in github. If I'll stumble across this situation in another Qt-application, I'll ping back.

              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