LibInput: Mark KeyboardLayout::key_event_from_raw const

This commit is contained in:
2026-07-04 19:12:06 +03:00
parent 5256fd2e0a
commit 6aa2329267
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ namespace LibInput
key = Key::None; key = Key::None;
} }
KeyEvent KeyboardLayout::key_event_from_raw(RawKeyEvent event) KeyEvent KeyboardLayout::key_event_from_raw(RawKeyEvent event) const
{ {
KeyEvent result; KeyEvent result;
result.modifier = event.modifier; result.modifier = event.modifier;

View File

@@ -14,7 +14,7 @@ namespace LibInput
static BAN::ErrorOr<void> initialize(); static BAN::ErrorOr<void> initialize();
static KeyboardLayout& get(); static KeyboardLayout& get();
KeyEvent key_event_from_raw(RawKeyEvent); KeyEvent key_event_from_raw(RawKeyEvent) const;
BAN::ErrorOr<void> load_from_file(BAN::StringView path); BAN::ErrorOr<void> load_from_file(BAN::StringView path);
BAN::Span<const Key> keymap_normal() const { return m_keycode_to_key_normal.span(); } BAN::Span<const Key> keymap_normal() const { return m_keycode_to_key_normal.span(); }