** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: Confirmed => In Progress

-- 
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/1587580

Title:
  No way to escape an ampersand in UCAction

Status in ubuntu-ui-toolkit package in Ubuntu:
  In Progress

Bug description:
  Let's say we have an Ubuntu.Action as follow:

  import Ubuntu.Components 1.3 as Ubuntu
  Ubuntu.Action {
      text: "Apps & Scopes"
  }

  UCAction translates the ampersand as a mnemonic, using QKeySequence.
  A way to escape a mnemonic in Qt is to add another ampersand. The resulting 
string is "Apps && Scopes".

  The UITK component seems not to take in account this situation, since:

  - How the string should be shown in e.g. an ActionBar:
  "Apps & Scopes"

  - How the string is displayed instead in an ActionBar:
  "Apps && Scopes"

  QKeySequence returns no mnemonic as expected, but UCAction shows two
  ampersands.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to