koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.05k stars 204 forks source link

Keybindings don't work while focused in password fields #325

Closed paulodiovani closed 8 months ago

paulodiovani commented 8 months ago

SKHD keybindinds don't work when a password field is focused on the browser.

It looks like, in password fields, the browser handles the keybinding itself, instead of the OS.

Test details

How to reproduce

  1. create a custom keybinding. e.g.

    cmd - t : open -na /System/Applications/Utilities/Terminal.app
  2. open a login page (e.g. https://accounts.google.com/)

  3. Fill in your username

  4. When on the password field, hit your keybinding (e.g. cmd - t)

Expected

Run the keybinding and execute the action (e.g. open the terminal app)

Current

koekeishiya commented 8 months ago

This is a security feature built into the macOS event-listener APIs.