← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1546677] [NEW] Popovers doesn’t allow overriding onEscapePressed

 

Public bug reported:

With the fix for bug #1523828, popovers are automatically closed when
ESC is pressed. This is a good default behaviour, however the
implementation is unfortunate: because the escapePressed handler is
defined on the foreground (a child item of the root popover), app
developers don’t get a chance to override it.

Here’s a concrete use case: in the browser, when bookmarking a page with
Ctrl+D, a popover with bookmark options is shown. We want the Enter key
to validate the options and save the bookmark, and the ESC key to remove
the bookmark.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1546677

Title:
  Popovers doesn’t allow overriding onEscapePressed

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  With the fix for bug #1523828, popovers are automatically closed when
  ESC is pressed. This is a good default behaviour, however the
  implementation is unfortunate: because the escapePressed handler is
  defined on the foreground (a child item of the root popover), app
  developers don’t get a chance to override it.

  Here’s a concrete use case: in the browser, when bookmarking a page
  with Ctrl+D, a popover with bookmark options is shown. We want the
  Enter key to validate the options and save the bookmark, and the ESC
  key to remove the bookmark.

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


Follow ups