Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 853f7e8

Browse files
committed
Fix the error messages keyboard
1 parent cf7a129 commit 853f7e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/keyboard.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (k *Keyboard) down(key string) error {
9393
WithUnmodifiedText(text).
9494
WithAutoRepeat(autoRepeat)
9595
if err := action.Do(cdp.WithExecutor(k.ctx, k.session)); err != nil {
96-
return fmt.Errorf("unable to mouse down: %w", err)
96+
return fmt.Errorf("unable to key down: %w", err)
9797
}
9898

9999
return nil
@@ -117,7 +117,7 @@ func (k *Keyboard) up(key string) error {
117117
WithCode(keyDef.Code).
118118
WithLocation(keyDef.Location)
119119
if err := action.Do(cdp.WithExecutor(k.ctx, k.session)); err != nil {
120-
return fmt.Errorf("unable to mouse down: %w", err)
120+
return fmt.Errorf("unable to key up: %w", err)
121121
}
122122

123123
return nil

0 commit comments

Comments
 (0)