cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <>
Subject [GitHub] cordova-docs pull request: CB-11077 backbutton does not minimize a...
Date Tue, 19 Apr 2016 18:37:40 GMT
Github user daserge commented on a diff in the pull request:
    --- Diff: www/docs/en/dev/cordova/events/ ---
    @@ -323,6 +323,16 @@ function onBackKeyDown() {
    +### Windows Quirks
    +Throw an error in a `backbutton` callback to force the default behavior:
    +document.addEventListener('backbutton', function (evt) {
    +    throw "Exit"; // This will suspend the app
    --- End diff --
    I believe the goal of the overriding is to implement a custom navigation logic as back
button closes the app by default on Windows as opposed to its purpose - go back or close if
there is no navigational history.
    So the only way to control this now is an option to throw an exception in handler so that
the app close will happen.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message