Skip to content

Commit

Permalink
Removed administrator check for macs.
Browse files Browse the repository at this point in the history
I tested it. It isn't needed. Enforcing administrator is actually worse for
people that have alternate keyboard layouts based on my testing. When you
enforce administrator, I think the library is assuming the administrator's
keyboard layout which is probably qwerty and I don't know how to or if it's
possible to change that to something else. But when you run the library under
the actual user, it uses that user's keyboard mapping.
  • Loading branch information
Alan Morgan authored and boppreh committed Nov 7, 2021
1 parent f29e555 commit 40a449d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions keyboard/_darwinkeyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,6 @@ def name_from_scancode(scan_code):
return key_controller.map_scan_code(scan_code)

def listen(callback):
if not os.geteuid() == 0:
raise OSError("Error 13 - Must be run as administrator")
KeyEventListener(callback).run()

def type_unicode(character):
Expand Down

0 comments on commit 40a449d

Please sign in to comment.