Closed youngkyo0504 closed 1 year ago
@youngkyo0504
The escape
shortcut will default to the "Back to Main Menu" behavior.
So you either need to:
await editor({
shortcuts: [],
onEscape: () => {
submit("test")
},
})
let shortcuts = [
{
key: "escape",
onPress: () => {
submit("test")
},
name: "Submit Test",
bar: "left",
},
]
await editor({
shortcuts,
})
Note: It's often preferable to override the shortcut so the user can see the name/action of the shortcut in the bottom bar.
wow...! It works
thank you for answer my issue 👍
https://github.com/johnlindquist/kit/assets/78121870/ec0d2404-3031-4120-a7c3-c6dcb44c8c69
This is my script code.
when I keydown ESCAPE, 'escape!!!!!' doesn't exist in log.