doc: research
This commit is contained in:
12
README.md
12
README.md
@@ -5,8 +5,16 @@ On Windows, Tauri requires the the msvc toolchain:
|
|||||||
rustup default stable-msvc
|
rustup default stable-msvc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Recommended IDE Setup
|
## Recommended IDE Setup
|
||||||
|
|
||||||
[VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) + [Angular Language Service](https://marketplace.visualstudio.com/items?itemName=Angular.ng-template).
|
[VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) + [Angular Language Service](https://marketplace.visualstudio.com/items?itemName=Angular.ng-template).
|
||||||
|
|
||||||
|
## Keyboard Emulation
|
||||||
|
Keyboard emulation on most systems requires workarounds for two issues:
|
||||||
|
- keeping the window with the keyboard on top while another (the input target) is in focus
|
||||||
|
- not receiving focus when clicked
|
||||||
|
- sending input
|
||||||
|
### Windows
|
||||||
|
To keep the window on top: [PowerToys Always on top](https://learn.microsoft.com/en-us/windows/powertoys/always-on-top).
|
||||||
|
To [send input](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput), inspired by [dpurgin/osk](https://github.com/dpurgin/osk).
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ pub fn run() {
|
|||||||
.setup(|app| {
|
.setup(|app| {
|
||||||
#[cfg_attr(not(target_os = "linux"), allow(unused_variables))]
|
#[cfg_attr(not(target_os = "linux"), allow(unused_variables))]
|
||||||
let window = app.get_webview_window("main").unwrap();
|
let window = app.get_webview_window("main").unwrap();
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
|
}
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
use x11::xlib;
|
use x11::xlib;
|
||||||
|
|||||||
Reference in New Issue
Block a user