Skip to content

Commit

Permalink
Merge pull request bendahl#6 from Sleeplessy/bug-fix
Browse files Browse the repository at this point in the history
fix the KeyUp fun
  • Loading branch information
bendahl authored Nov 9, 2017
2 parents 050ec52 + 2625134 commit 487ec5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func (vk vKeyboard) KeyDown(key int) error {
// cases it is recommended to call this function immediately after the "KeyDown" function in order to only issue a
// single key press.
func (vk vKeyboard) KeyUp(key int) error {
err := sendBtnEvent(vk.deviceFile, key, btnStatePressed)
err := sendBtnEvent(vk.deviceFile, key, btnStateReleased)
if err != nil {
return fmt.Errorf("Failed to issue the KeyUp event: %v", err)
}
Expand Down

0 comments on commit 487ec5a

Please sign in to comment.