How To Prevent Enter Key From Sending Chat Message

Anonymous
2022-11-11T15:44:24+00:00

I am often working in other windows but have a lot of teams messages that I need to address. This results in my sending meaningless messages accidentally when I hit ENTER thinking I am in a different window but I am really in teams. How do I by default prevent the ENTER button from sending a message?

Microsoft Teams | Microsoft Teams for business | Chats | Group chats

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

83 answers

Sort by: Newest
  1. Anonymous
    2024-11-28T17:51:26+00:00

    Yes, that could work.

    I recently had used keyboard remapping via Power toy to get euro symbol on my Dell Multilingual qwerty keyboard so that AltGr+4 which what it is on British qwerty keyboard.

    While doing that I thought about this problem, but you need to limit it to a site or application. I think you can, but I didn't dare to try, in case it become a new side project again.

    Has anyone done it limiting the remap to a certain site or application?

    I didn't want to play the lab mouse.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-11-28T01:07:26+00:00

    Thank you for the useful info ! very helpful !

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-11-27T23:51:49+00:00

    You might try mapping enter to shift-enter, and mapping shift-enter to ctrl-enter.
    If you hit ctrl-enter, it sends from either mode, and shift-enter enters a newline in either mode. There might be a combo that gets you the behavior you want.

    Great idea, thank you.

    I'm embarrassed I never dug deep enough to notice enter is the only related key stroke that changes with mode. But if this mapping works in all the other teams windows, it just might save my sanity!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-11-26T20:49:43+00:00

    You might try mapping enter to shift-enter, and mapping shift-enter to ctrl-enter.
    If you hit ctrl-enter, it sends from either mode, and shift-enter enters a newline in either mode. There might be a combo that gets you the behavior you want.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-11-26T20:26:16+00:00

    This portion of my example script:

    #HotIf WinActive("ahk_exe ms-teams.exe")

    will limit this hotkey to ONLY swap the keymapping within teams.

    I had independently tried an AutoHotKey fix to map shift+enter to enter and vice versa. I threw it away because I couldn't find a way to make the script understand the format vs normal mode. Swapping the keys just swaps the mode in which the accidental sends happen, and it turns out I use both.
    If there is to be an keyboard shortcut for something that isn't related to entering text, it needs to be constant through editing modes. An exception for letters and caps lock, but if I miss that mode toggle then I'm only shouting and that I can edit before the message is sent out.

    Funny thing, in this text entry box, enter does as enter should even before I click a format function.

    Was this answer helpful?

    0 comments No comments