E_showPrompt_Q3: allow long press actions

as proposed at https://github.com/espruino/BangleApps/issues/3915#issuecomment-3212066440
This commit is contained in:
thyttan 2025-08-22 23:27:33 +02:00
parent c72410f6a3
commit 5b83d75c95

View File

@ -64,6 +64,9 @@
draw(i); // highlighted button
g.flip(); // write to screen
E.showPrompt(); // remove
if (e.type===2 /*long press*/ && options.buttonsLong && options.buttonsLong[btns[i]]) {
resolve(options.buttonsLong[btns[i]]);
}
resolve(options.buttons[btns[i]]);
}
});
@ -76,4 +79,4 @@
};
Bangle.setUI(ui);
});
})
})