It was my understanding, that the default keyboard event handler does everything needed to deal with the keyboard. So I thought that this:
scr = lv.obj()
kbd = lv.keyboard(scr)
kbd.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0)
lv.scr_load(scr)
behaves exactly the same as this:
def kbd_event_cb(obj, evt):
obj.def_event_cb(evt);
scr = lv.obj()
kbd = lv.keyboard(scr)
kbd.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0)
kbd.set_event_cb(kbd_event_cb);
lv.scr_load(scr)
But it doesn’t. In the first case the keyboard can be closed with the X button, in the second it can’t. Why is there a difference in behaviour betwen these two cases?