zig-webui icon indicating copy to clipboard operation
zig-webui copied to clipboard

macOS: Keyboard events aren't forwarded to the WebView

Open thundron opened this issue 6 months ago • 1 comments

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

thundron avatar Aug 16 '24 14:08 thundron