fix(sdk/ime): IME 修复(shift小写基/OK只提交不关/阻塞喂on_tick agent-169) + dialog INPUT回归(dlg_ime_change_cb实时回写+适配新语义 agent-173) + test_sdk_fixes shift断言更新 + 宿主测试test_ime_fix
This commit is contained in:
1 parent
c515a33ac4
commit
2d7fe81229
7 files changed
+359
-15
No files matched your search
@@ -141,7 +141,8 @@ typedef struct meow_ime_ctx {
|
||||
void *ctx;
|
||||
} meow_ime_ctx;
|
||||
|
||||
/* 阻塞:弹出键盘直到确认/取消。返回 1=确认(buf 已回填),0=取消。 */
|
||||
/* 阻塞:弹出键盘直到关闭(ESC / 点背景取消);回车=只提交不关闭(内容经 on_change 实时同步)。
|
||||
* 关闭路径返回 0(取消);提交内容经 on_change 回调逐键同步,不依赖返回值回填 buf。 */
|
||||
int meow_ui_text_input(meow_ime_ctx *ctx);
|
||||
|
||||
/* 非阻塞:返回后 app 在 on_tick 里轮询 meow_ime_active()/meow_ime_text() */
|
||||
@@ -443,7 +444,8 @@ int meow_btn_set_variant(meow_widget *w, int variant); /* 越界 clam
|
||||
meow_widget *meow_textfield_create(int x, int y, int w, int h, const char *placeholder,
|
||||
char *buf, int maxlen, meow_ime_mode mode);
|
||||
void meow_textfield_set_placeholder(meow_widget *w, const char *placeholder);
|
||||
/* 聚焦并打开**阻塞** IME(同 meow_ui_text_input 内层轮询);返回 1=确认 0=取消;buf 已回填 */
|
||||
/* 聚焦并打开**阻塞** IME(同 meow_ui_text_input 内层轮询);回车不关闭键盘,ESC/点背景关闭。
|
||||
* 内容经 on_change 实时同步到 w->buf(返回值关闭路径为 0,提交不依赖返回值回填)。 */
|
||||
int meow_textfield_activate(meow_widget *w);
|
||||
const char *meow_textfield_text(meow_widget *w);
|
||||
|
||||
|
||||
Reference in new issue
Block a user