-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Print any character with string() by falling back to AppleScript
If the string() arg contains any characters that do not have a corresponding Karabiner key_code, then the multi-char event method changes. Instead of sending consecutive 'to: key_code' events (which is the fastest way), the entire string is copied to the clipboard and pasted to the frontmost app. The prior contents of the clipboard are then restored. There is a small delay using this AppleScript command, but in my opinon within a tolerable range.
- Loading branch information
Showing
2 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters