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:
parent
63ee5a86a6
commit
cec38887b1
1 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue