wayland: keyboard: remove keysym sanitizing

The NoSymbol and XF86Fn keysyms are already filtered out because they
are not available and because the function key is a keysym modifier.
Remove the sanitizing.
This commit is contained in:
Richard Acayan 2024-08-12 19:16:33 -04:00
parent 63ee5a86a6
commit cec38887b1

View file

@ -123,10 +123,6 @@ impl Keyboard for VirtualKeyboard {
fn press(&mut self, sym: Keysym)
{
if sym == Keysym::NoSymbol || sym == Keysym::XF86_Fn {
return;
}
match sym {
Keysym::Shift_L => {
self.mod_state |= 0x1;
@ -157,10 +153,6 @@ impl Keyboard for VirtualKeyboard {
fn release(&mut self, sym: Keysym)
{
if sym == Keysym::NoSymbol || sym == Keysym::XF86_Fn {
return;
}
match sym {
Keysym::Shift_L => {
self.mod_state &= !0x1;