Keyboard Shortcut doesn't work when the action is in the overflow button

Bug #1600177 reported by Kugi Eusebio
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Zoltan Balogh
ubuntu-ui-toolkit (Ubuntu)
Confirmed
High
Unassigned

Bug Description

EXPECTED RESULT:
Performing the keyboard shortcut should trigger the action.

ACTUAL RESULT:
Performing the keyboard shortcut does nothing and no indication of an error in the log

STEPS TO REPRODUCE:
1. Add actions in the trailingActionBar of a page header.
2. Add keyboard shortcut to these actions i.e. "Ctrl+F"
3. Set the numberOfSlots property to 1 so that all actions are in the overflow button.
4. Try to perform the keyboard shortcuts

Framework Version: ubuntu-sdk-15.04.5
Device: Nexus 7 (rc-proposed) and bq E5 HD (OTA 11)

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
Changed in canonical-devices-system-image:
assignee: nobody → Zoltan Balogh (bzoltan)
status: New → Confirmed
Revision history for this message
Zsombor Egri (zsombi) wrote :

Question: does the action, which is not in the overflow, get triggered by the shortcut assigned to it? I suspect it does.

The thing is, once the action goes into the overflow, it will be deactivated as long as the overflow is shown. This is due to ActionSelectionPopover being used by the overflow, which has its own ActionContext (PopupContext), which is inactive as long as it is not getting visible.

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: Zsombor Egri (zsombi) → Tim Peeters (tpeeters)
Revision history for this message
Kugi Eusebio (kugi-igi) wrote :

Yes, when it is not in the overflow the shortcut works

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → High
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: Tim Peeters (tpeeters) → nobody
Revision history for this message
Joan CiberSheep (cibersheep) wrote :

This also happens:

Having a Main.qml shortcut Ctrl+M works, but not any shortcut in the pushed Menu.qml

Main.qml (ctrlM works)
                leadingActionBar {
                    numberOfSlots: 1
                    actions: [
                        Action {
                            id: actionSettings
                            iconName: "navigation-menu"
                            shortcut: "Ctrl+M"
                            text: "Menu"
                            onTriggered: {
                                Qt.inputMethod.hide();
                                mainPageStack.push(Qt.resolvedUrl("Menu.qml"))
                            }
                        }
                    ]
                }

pushed Menu.qml Ctrl B does not work:

            leadingActionBar {
                numberOfSlots: 1
                actions: [
                    Action {
                        id: actionSettings
                        iconName: "back"
                        text: "Back"
          shortcut: "Ctrl+B"
                        onTriggered: {
                            onClicked: mainPageStack.pop(pageMenu)
                        }
                    }
                ]
            }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.