Created
December 4, 2024 15:07
-
-
Save johnlindquist/288795b3e067218c998a7da2a7f2b013 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Name: Testing Prevent Submit | |
import "@johnlindquist/kit"; | |
await arg( | |
{ | |
placeholder: "Prevent Submit", | |
enter: "", | |
}, | |
["one", "two", "three"], | |
[ | |
{ | |
name: "speak", | |
shortcut: `${cmd}+enter`, | |
onAction: (input, state) => { | |
say(state.focused.value); | |
}, | |
}, | |
], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment