zig-webui
zig-webui copied to clipboard
macOS: Keyboard events aren't forwarded to the WebView
On macOS, when loading a website, the input is not forwarded to the window but remains in the terminal. Code to reproduce:
const std = @import("std");
const webui = @import("webui");
pub fn main() !void {
// Create new windows
var nwin = webui.newWindow();
// Show a new WebView window
_ = nwin.showWv("https://www.google.com");
// Wait until all windows get closed
webui.wait();
// Free all memory resources (Optional)
webui.clean();
}
Moreover, the instance eventually quits by itself after some ~10 seconds