diff --git a/game/engines/default/engine/ui/WebView.lua b/game/engines/default/engine/ui/WebView.lua index 3adf315c104ea0b4a7a8366538004062566a9405..e4517f15d8d06e284b5f362f4ad6964d950fc08c 100644 --- a/game/engines/default/engine/ui/WebView.lua +++ b/game/engines/default/engine/ui/WebView.lua @@ -132,14 +132,11 @@ function _M:generate() elseif core.webview.kind == "cef3" then function self.key.receiveKey(_, sym, ctrl, shift, alt, meta, unicode, isup, key, ismouse, keysym) if not self.view then return end - print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", isup, keysym) if unicode then keysym = unicode:sub(1):byte() - print("==uni", keysym, unicode) self.view:injectKey(true, keysym, 0, unicode) return end - print("==not", keysym) self.view:injectKey(isup, keysym, 0, "") end end diff --git a/src/web.c b/src/web.c index b9a8cb412f33de832e0dac92ab4152138bf22b26..de835e4495136bfbf720c9ccc2d085b7c95476ad 100644 --- a/src/web.c +++ b/src/web.c @@ -180,7 +180,7 @@ static int lua_web_inject_key(lua_State *L) { const char *uni = NULL; size_t unilen = 0; if (lua_isstring(L, 5)) uni = lua_tolstring(L, 5, &unilen); -printf("???=== %d\n", scancode); + te4_web_inject_key(view, scancode, asymb, uni, unilen, up); return 0; }