From 3baf7782601dd193ada3d9e8b28b940d6a6713bc Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 31 Jul 2023 19:56:08 +0800 Subject: [PATCH] fuxk --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3497282..84ef3d4 100755 --- a/main.py +++ b/main.py @@ -82,7 +82,8 @@ class WebKitWindow(Gtk.Window): self.webview.load_uri("app:///index.html") # self.webview.load_uri("https://benchmark.wkit.fun") - + + im.connect('preedit-changed', self.on_preedit_changed) @@ -92,6 +93,12 @@ class WebKitWindow(Gtk.Window): self.add(self.webview) + def on_preedit_changed(self, im): + print(p) + im.notify_focus_in() + im.notify_cursor_area(100, 200, 0,0) + + def resource_request_callback(self, req):