Skip to content

Commit e08c2f8

Browse files
committed
fix linux
1 parent 937ad60 commit e08c2f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/gpui/src/platform/linux/platform.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use xkbcommon::xkb::{self, Keycode, Keysym, State};
2525
use crate::{
2626
Action, AnyWindowHandle, BackgroundExecutor, ClipboardItem, CursorStyle, DisplayId,
2727
ForegroundExecutor, Keymap, LinuxDispatcher, Menu, MenuItem, OwnedMenu, PathPromptOptions,
28-
Pixels, Platform, PlatformDisplay, PlatformKeyboardLayout, PlatformTextSystem, PlatformWindow,
29-
Point, Result, Task, WindowAppearance, WindowParams, px,
28+
Pixels, Platform, PlatformDisplay, PlatformKeyboardLayout, PlatformKeyboardMapper,
29+
PlatformTextSystem, PlatformWindow, Point, Result, Task, WindowAppearance, WindowParams, px,
3030
};
3131

3232
#[cfg(any(feature = "wayland", feature = "x11"))]
@@ -144,6 +144,10 @@ impl<P: LinuxClient + 'static> Platform for P {
144144
self.keyboard_layout()
145145
}
146146

147+
fn keyboard_mapper(&self) -> Rc<dyn PlatformKeyboardMapper> {
148+
Rc::new(crate::DummyKeyboardMapper)
149+
}
150+
147151
fn on_keyboard_layout_change(&self, callback: Box<dyn FnMut()>) {
148152
self.with_common(|common| common.callbacks.keyboard_layout_change = Some(callback));
149153
}

0 commit comments

Comments
 (0)