[−][src]Function smithay_client_toolkit::keyboard::map_keyboard_auto
pub fn map_keyboard_auto<Impl>(
seat: &WlSeat,
implementation: Impl
) -> Result<WlKeyboard, Error> where
Impl: FnMut(Event<'a>, WlKeyboard) + 'static,
Implement a keyboard to automatically detect the keymap
This requires you to provide an implementation to receive the events after they have been interpreted with the keymap.
The keymap information will be loaded from the events sent by the compositor, as such you need to call this method as soon as you have created the keyboard to make sure this event does not get lost.
Returns an error if xkbcommon could not be initialized.