Skip to content

Commit

Permalink
fixup! add macos keyboard support
Browse files Browse the repository at this point in the history
  • Loading branch information
mzgoddard committed Feb 5, 2024
1 parent 04f3a82 commit c27b6a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/helpers/macos/parseCodePoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ exports.parseCodePoints = function (codes) {
} else if (code.length === 1) {
throw new Error(`unknown key (\\u${code.charCodeAt(0).toString(16)})`);
} else {
// Matches an error thrown by robotjs.
throw new Error('Invalid key code specified.');
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/macos/applescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ suite('helpers/macos/applescript', () => {
{
description: 'throws on invalid code',
keyCombination: ['df daf% ?'],
throws: /unknown key/,
throws: /Invalid key code/,
},
],
);
Expand Down

0 comments on commit c27b6a2

Please sign in to comment.