Menu bar and sub menu issue
-
We have an issue with Menu Bar and Sub Menu Bar in bringing Active Focus using keyboard short cuts like "Alt + F" and "Alt + E"
Problem Scenario: I have 3 menus like 1. &File 2. &Edit 3. &Recent
Each menu has one Sub Menu like File menu has 1. &OpenFile
2. &EditFile
Our requirement is If we use keyboard shortcut "Alt + F" and "Alt + E" should bring or shift activefocus to sub-menu "EditFile" under main menu "File".In our case "Alt+F' and "Alt+E" is only bringing activefocus to main menu "Edit".
Please suggest us solution for our problem -
We have an issue with Menu Bar and Sub Menu Bar in bringing Active Focus using keyboard short cuts like "Alt + F" and "Alt + E"
Problem Scenario: I have 3 menus like 1. &File 2. &Edit 3. &Recent
Each menu has one Sub Menu like File menu has 1. &OpenFile
2. &EditFile
Our requirement is If we use keyboard shortcut "Alt + F" and "Alt + E" should bring or shift activefocus to sub-menu "EditFile" under main menu "File".In our case "Alt+F' and "Alt+E" is only bringing activefocus to main menu "Edit".
Please suggest us solution for our problem@Gokulnath You can use the KeyEvent (https://doc.qt.io/qt-6/qml-qtquick-keyevent.html#count-prop) to hook into pressed keys. It's possible
to check for key combinations.After the event is triggered programm out your needed logic with focus
-
@Gokulnath You can use the KeyEvent (https://doc.qt.io/qt-6/qml-qtquick-keyevent.html#count-prop) to hook into pressed keys. It's possible
to check for key combinations.After the event is triggered programm out your needed logic with focus
@Redman only the alt key press is being detected not both alt+any key(ex:F) is being detected. I have tried using sequence, key event but couldn't able to detect. If we detect the press event then we give a focus to menu so that the next key press event can open the submenu in this shown menu.