default to handy keys on windowss (#1029)
This commit is contained in:
parent
7056edce28
commit
a58216e076
1 changed files with 3 additions and 5 deletions
|
|
@ -171,12 +171,10 @@ pub enum KeyboardImplementation {
|
||||||
|
|
||||||
impl Default for KeyboardImplementation {
|
impl Default for KeyboardImplementation {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
// Default to HandyKeys only on macOS where it's well-tested.
|
#[cfg(target_os = "linux")]
|
||||||
// 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"))]
|
|
||||||
return KeyboardImplementation::Tauri;
|
return KeyboardImplementation::Tauri;
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
return KeyboardImplementation::HandyKeys;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue