default to handy keys on windowss (#1029)

This commit is contained in:
CJ Pais 2026-03-13 20:37:09 +08:00 committed by GitHub
parent 7056edce28
commit a58216e076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,12 +171,10 @@ pub enum KeyboardImplementation {
impl Default for KeyboardImplementation {
fn default() -> Self {
// Default to HandyKeys only on macOS where it's well-tested.
// Windows and Linux use Tauri by default (handy-keys not sufficiently tested yet).
#[cfg(target_os = "macos")]
return KeyboardImplementation::HandyKeys;
#[cfg(not(target_os = "macos"))]
#[cfg(target_os = "linux")]
return KeyboardImplementation::Tauri;
#[cfg(not(target_os = "linux"))]
return KeyboardImplementation::HandyKeys;
}
}