You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to bind an event handler to a keydown event for a specific set of keys.
Examples - using enter key for submit, providing a keyboard friendly set of options.
Single key:
event :keypress, :enter do
# event handler code goes here
end
An array of keys:
event :keypress, :enter, :g do
# event handler code goes here
end
Having a modifier
event :keypress, :enter, {key: :g, modifiers: :ctrl} do
# event handler code goes here
end
Having multiple modifiers
event :keypress, :enter, {key: :g, modifiers: [:shift,:ctrl]} do
# event handler code goes here
end
The text was updated successfully, but these errors were encountered:
You should be able to bind an event handler to a keydown event for a specific set of keys.
Examples - using enter key for submit, providing a keyboard friendly set of options.
Single key:
An array of keys:
Having a modifier
Having multiple modifiers
The text was updated successfully, but these errors were encountered: