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):