I have a dcc.Input with html html.Button and after I enter text, I’d like it to just press “ENTER” on my keyboard to activate the button instead of always clicking with my mouse. Is this possible? Here is my code
[
html.Div(id="test-output", style={"marginBottom": "10px"}),
dcc.Input(
id="user-input", type="text", placeholder="Type your message..."
),
html.Button("Send", id="send-button", n_clicks=0),
dcc.Store(
id="hidden-div", storage_type="memory", data=[]
), # Initialize with an empty list
],
style=test_style,
)