admin管理员组

文章数量:1344964

I'm building a virtual keyboard using Tauri and pure JavaScript. My application is already set up, but I want to insert the character from the virtual keyboard into the focused window when a key is clicked. The issue is that when clicking on a key, the character should only be inserted into the window that currently has focus. However, it seems that the focus might be the issue. Does Tauri or Rust offer a way to handle this focus management?

For reference, the github repo:

PS: I have no knowedlge of Rust, but I pick things up pretty quickly and I'm not afraid of googling things if needed. And I've been using chatgpt.

  • Temporary copy to clipboard feature

  • using js event.preventDefault()

Edit: Issue is probably low level, so I think the research gotta be focused on some obscure Rust feature leveraging some other obscure feature of the OS. PS: We're working on Windows, but basically any solution for any OS would be fine (or even hints)

本文标签: