touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #124456
[Bug 1518420] Re: There is no way to unset action 'shortcut' property
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: In Progress => Fix Committed
** Changed in: canonical-devices-system-image
Status: In Progress => Fix Committed
** Package changed: ubuntu-ui-toolkit (Ubuntu) => ubuntu-ui-toolkit
(Ubuntu RTM)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1518420
Title:
There is no way to unset action 'shortcut' property
Status in Canonical System Image:
Fix Committed
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
Fix Committed
Bug description:
Since all the actions are enabled and active by default (causing the
Ambiguous bug#1514856) I implement a workaround in my app to disable
action shortcuts if the page is not active. Something like:
shortcut: page.active ? "Esc" : ""
The problem is, that I am receiving serveral error messages on
terminal while running the app:
"QML Action: Invalid shortcut:"
---------------------------------
Note: the shortcut (and any property that can be reset) should be cleared/reset using undefined. So the above binding should look like:
shortcut: page.active ? "Esc" : undefined
Note2: actions added to any ActionItem derived type will automatically
activate/deactivate depending on the page or dialog activation. This
means that those Actions which are in an inactive Page will not be
active, so there will be no need for the above binding.
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1518420/+subscriptions
References