Skip to content

Commit

Permalink
Fixed ListKeyboards
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-fiscaletti committed Oct 28, 2024
1 parent f96182a commit d7c77bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion input-device.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func ListKeyboards() ([]*Device, error) {
return nil, err
}

keyboardCheck:
for _, device := range devices {
if !device.SupportsEvent(EV_KEY) || device.SupportsEvent(EV_REL) || device.SupportsEvent(EV_ABS) {
continue
Expand All @@ -43,7 +44,7 @@ func ListKeyboards() ([]*Device, error) {

for _, key := range common {
if !device.SupportsKey(key) {
continue
continue keyboardCheck
}
}

Expand Down

0 comments on commit d7c77bf

Please sign in to comment.