Paste Into Restricted Field


This macro provides a method to effectively paste text into a field that is otherwise restricted (e.g., a password confirmation)*. For many of these fields, the Keyboard Maestro action Insert Text by Typing will suffice (with or without the the Send To option). However, in cases when the web page or macOS app intercepts the Keyboard Maestro trigger, and/or in cases where the text must be pasted more slowly, this macro can be used.

Paste Into Restricted Field		⌃⇧V or ⌃⌥⇧V 

*When the text is long (e.g., with secure passwords copied from a password manager) this can be particularly aggravating.


  • Move the focus away from the restricted field (web page or macOS app).
  • Optionally copy a text string into the Clipboard.
  • Trigger this macro; a settings dialog will appear.
  • Optionally modify the values displayed in the dialog: Wait before typing (in seconds; default = 5) , Text to type (default = Clipboard), and Delay between characters (in hundredths seconds; default = 0). Select the OK button.
  • During the specified Wait, return the focus to the restricted field and wait for the text to be entered by the macro. The submarine sound will be heard when the typing is complete.


The Wait and and the Delay settings are saved for subsequent macro executions. However, if the Option Key (⌥) was included when the macro was triggered, Wait and Delay are reset to the default values, 5 seconds and 0 hundredths seconds, respectively. If necessary, these default values can be adjusted.

In contrast, the Text setting is not preserved; it always defaults to the value of the Clipboard.


HTML/JavaScript code within this macro was adapted from: Simplistic Countdown Timer, by @troy. In turn, that code was adapted from Keyboard Maestro Actions that @perternlewis supplied in this post.


• Big Sur, v11.6
• Keyboard Maestro, v9.2
• MacBookPro16,1


1.0 - Initial version


DOWNLOAD Macro File:
Paste Into Restricted Field.kmmacros (29 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Image • Paste Into Restricted Field