diff --git a/crates/settings/src/settings.rs b/crates/settings/src/settings.rs index 7ec2d423c6..1966755d62 100644 --- a/crates/settings/src/settings.rs +++ b/crates/settings/src/settings.rs @@ -87,12 +87,12 @@ pub fn default_settings() -> Cow<'static, str> { #[cfg(target_os = "macos")] pub const DEFAULT_KEYMAP_PATH: &str = "keymaps/default-macos.json"; -#[cfg(target_os = "linux")] -pub const DEFAULT_KEYMAP_PATH: &str = "keymaps/default-linux.json"; - #[cfg(target_os = "windows")] pub const DEFAULT_KEYMAP_PATH: &str = "keymaps/default-windows.json"; +#[cfg(not(any(target_os = "macos", target_os = "windows")))] +pub const DEFAULT_KEYMAP_PATH: &str = "keymaps/default-linux.json"; + pub fn default_keymap() -> Cow<'static, str> { asset_str::(DEFAULT_KEYMAP_PATH) }