Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Request: classic support for bbui.js #1037

Open
MerrickZ opened this issue Oct 31, 2014 · 1 comment
Open

Request: classic support for bbui.js #1037

MerrickZ opened this issue Oct 31, 2014 · 1 comment

Comments

@MerrickZ
Copy link

for example.
when pushed a screen like "settings", press back button, it should execute "popscreen", but now it just minimized the app to background.
when press menubutton, it should open the app menu, but it did nothing.
this should be implemented.

@T-M-C
Copy link

T-M-C commented Nov 3, 2014

you can easily assign your own function, like "popscreen" to the button:

document.addEventListener("deviceready", function () {
    document.addEventListener('menubutton', onMenuButton);
    document.addEventListener('backbutton', onBackButton);
}); 
function onMenuButton() {
    console.log("The Menu button was pressed");
}

function onBackButton() {
    console.log("POPSCREEN?");
}

https://developer.blackberry.com/html5/documentation/v2_2/handling_bb_classic_buttons.html
(needs com.blackberry.app plugin, if you had it before, remove and add it again to update it)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants