** Description changed:

  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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1518420

Title:
  There is no way to unset action 'shortcut' property

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1518420/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to