@@ -25,8 +25,8 @@ use xkbcommon::xkb::{self, Keycode, Keysym, State};
25
25
use crate :: {
26
26
Action , AnyWindowHandle , BackgroundExecutor , ClipboardItem , CursorStyle , DisplayId ,
27
27
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,
30
30
} ;
31
31
32
32
#[ cfg( any( feature = "wayland" , feature = "x11" ) ) ]
@@ -144,6 +144,10 @@ impl<P: LinuxClient + 'static> Platform for P {
144
144
self . keyboard_layout ( )
145
145
}
146
146
147
+ fn keyboard_mapper ( & self ) -> Rc < dyn PlatformKeyboardMapper > {
148
+ Rc :: new ( crate :: DummyKeyboardMapper )
149
+ }
150
+
147
151
fn on_keyboard_layout_change ( & self , callback : Box < dyn FnMut ( ) > ) {
148
152
self . with_common ( |common| common. callbacks . keyboard_layout_change = Some ( callback) ) ;
149
153
}
0 commit comments