diff --git a/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py b/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py index 5e3af8e7..1bd2e5b9 100644 --- a/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py +++ b/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py @@ -173,10 +173,10 @@ def keypad_read_cb(indev, data): last_state = data.state last_repeat_time = current_time else: - pass # not needed as it doesnt help navigating around in the keyboard: - #print("No repeat yet, send RELEASED to avoid PRESSING?") - #data.state = lv.INDEV_STATE.RELEASED - #last_state = lv.INDEV_STATE.RELEASED + # This doesn't seem to make the key navigation in on-screen keyboards work, unlike on the m5stack_fire...? + #print("No repeat yet, send RELEASED to avoid PRESSING, which breaks keyboard navigation...") + data.state = lv.INDEV_STATE.RELEASED + last_state = lv.INDEV_STATE.RELEASED # Handle ESC for back navigation (only on initial PRESSED) if data.state == lv.INDEV_STATE.PRESSED and data.key == lv.KEY.ESC: diff --git a/internal_filesystem/lib/mpos/ui/keyboard.py b/internal_filesystem/lib/mpos/ui/keyboard.py index 198c1548..625c3e6c 100644 --- a/internal_filesystem/lib/mpos/ui/keyboard.py +++ b/internal_filesystem/lib/mpos/ui/keyboard.py @@ -16,6 +16,7 @@ Usage: """ import lvgl as lv + from .appearance_manager import AppearanceManager from .widget_animator import WidgetAnimator @@ -129,7 +130,14 @@ class MposKeyboard: def _handle_events(self, event): code = event.get_code() - #print(f"keyboard event code = {code}") + + ''' + # DEBUG: + from .event import get_event_name + name = get_event_name(code) + print(f"keyboard event code = {code} is {name}") + ''' + if code == lv.EVENT.READY or code == lv.EVENT.CANCEL: self.hide_keyboard() return diff --git a/scripts/build_mpos.sh b/scripts/build_mpos.sh index 96220efc..e3e6d3c2 100755 --- a/scripts/build_mpos.sh +++ b/scripts/build_mpos.sh @@ -102,7 +102,7 @@ if [ "$target" == "esp32" -o "$target" == "esp32s3" -o "$target" == "esp32s3_qem fi fi manifest=$(readlink -f "$codebasedir"/manifests/manifest.py) - frozenmanifest="FROZEN_MANIFEST=$manifest" # Comment this out if you want to make a build without any frozen files, just an empty MicroPython + whatever files you have on the internal storage + #frozenmanifest="FROZEN_MANIFEST=$manifest" # Comment this out if you want to make a build without any frozen files, just an empty MicroPython + whatever files you have on the internal storage echo "Note that you can also prevent the builtin filesystem from being mounted by umounting it and creating a builtin/ folder." pushd "$codebasedir"/lvgl_micropython/ rm -rf lib/micropython/ports/esp32/build-$BOARD-$BOARD_VARIANT @@ -111,7 +111,7 @@ if [ "$target" == "esp32" -o "$target" == "esp32s3" -o "$target" == "esp32s3_qem # --ota: support Over-The-Air updates # --partition size: both OTA partitions are 4MB # --flash-size: total flash size is 16MB - # --debug: enable debugging from ESP-IDF but makes copying files to it very slow + # --debug: enable debugging from ESP-IDF but makes copying files to it very slow so that's not added # --dual-core-threads: disabled GIL, run code on both CPUs # --task-stack-size={stack size in bytes} # CONFIG_* sets ESP-IDF options