A third option (maybe better than the previous two) would be to keep the implementation as it is, but after calling hide() in the escapePressed handler, set event.accepted to false, so that the event bubbles up.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1546677 Title: Popovers doesn’t allow overriding onEscapePressed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1546677/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs