Closed jamisonderek closed 5 months ago
hmmm this is most likely due to recent event loop changes, it refactored inner view dispatcher workings... from a first guess im assuming event loop is receiving the stop event from previous view dispatcher in the new view dispatcher due to being on the same thread. it is a odd usecase, but this sould not be the breaking. ill investigate further and ask upstream. thanks for the report
fix submitted here https://github.com/flipperdevices/flipperzero-firmware/pull/3711
fixed via eaf1a5dd3d27dda4dd5809d0cf281050a2a53362
Describe the bug.
If you call keyboard.text twice, it no longer works. Older builds (like mntm-004) would display both
Question
andAnswer
. Now I get prompted for Question (the first use of keyboard.text) but I don't get prompted for Answer.mntm-dev [14-06-2024] / 906a1e7a [65.0].
Reproduction
Create the following keyb.js file, copy it to SD card, and then run it.
let keyboard = require("keyboard"); keyboard.setHeader("Question"); let question = keyboard.text(100, "", true); print(question); keyboard.setHeader("Answer"); let answer = keyboard.text(100, "", true); print(answer);
Target
js
Logs
No response
Anything else?
No response