How does onLeft cancel the default event, that is, without changing the cursor position of the input field #1319
-
await arg({
onLeft() {}, // The input field cursor position is changed by default, but I don't want it to change
onRight() {},
}, ...) |
Beta Was this translation helpful? Give feedback.
Answered by
johnlindquist
Jul 23, 2023
Replies: 1 comment 1 reply
-
That's not currently supported. Unfortunately, it's very challenging to have the script tell that app to "prevent" events. Because the script doesn't know about the events until after they've happened. I'll keep trying to think of some sort of configuration you could pass in, but I don't have any plans at this time. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alkene0005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alkene0005
That's not currently supported.
Unfortunately, it's very challenging to have the script tell that app to "prevent" events. Because the script doesn't know about the events until after they've happened. I'll keep trying to think of some sort of configuration you could pass in, but I don't have any plans at this time.