Prevent input from closing on submit #122
Unanswered
danielo515
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think you're on the right track. You'll need to override the keybindings to acheive that. e.g.: input:map("i", "<CR>", function()
-- do something
end, { noremap = true })
input:map("n", "<CR>", function()
-- do something
end, { noremap = true }) I'm curious about your use-case. What are you trying to implement? 🤔 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
Is it possible to prevent an input from closing on submit?
I guess a possible workaround would be to update some internal state on change and bind a custom function to the CR key, but I was wondering if there is an easier way.
Beta Was this translation helpful? Give feedback.
All reactions