Skip to content

Commit

Permalink
Fix handling of specialKey in input
Browse files Browse the repository at this point in the history
  • Loading branch information
not-chicken authored and andyholmes committed May 9, 2022
1 parent b37d8d3 commit f2798d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/service/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,12 @@ class Controller {
try {
this._ensureAdapter();

for (let i = 0; i < input.length; i++)
this._session.pressKey(input[i], modifiers);
if (typeof input === 'string') {
for (let i = 0; i < input.length; i++)
this._session.pressKey(input[i], modifiers);
} else {
this._session.pressKey(input, modifiers);
}
} catch (e) {
debug(e);
}
Expand Down

0 comments on commit f2798d7

Please sign in to comment.