mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
E_showPrompt_Q3: allow long press actions
as proposed at https://github.com/espruino/BangleApps/issues/3915#issuecomment-3212066440
This commit is contained in:
parent
c72410f6a3
commit
5b83d75c95
@ -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);
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user