Enter button

#582
by Rayyan747 - opened

how come the enter key doesnt work when i press it on my keyboard it creates a new line. is there a way to change it to send the message?

Hugging Chat org

could you tell me which OS/browser you're using and which device ? (does it have a touchpad?)

microsoft edge, windows 11, and lenovo yoga 730, yes it has a touchpad.

image.png
it creates lines under the message

Hello?
anyone

Hugging Chat org

Hi @Rayyan747 sorry for the delay! Looks like the code we use to check if we're on a mobile mistakenly thinks your device is a mobile because of the touchpad. Will take a look!

@nsarrazin I've tried a different browser (currently using edge but tested on firefox as well to see if it would fix it), same result on my PC. When testing on my android phone and forcing desktop site, it also changed a line instead of submitting the query when pressing enter.

A solution I can think of is to use a shortcut like shift+enter to force a submission but that doesn't work, do you guys use an alternative keyboard shortcut for that?

Loving Huggingchat so far and thank you for your time.

Hugging Chat org

I think we could add a shift+enter alternative send. Will open an issue to track it

tab+enter will do it

tab+enter will do it

well, specifically pressing tab then enter.

Sign up or log in to comment