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: Oldest
  1. 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
  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-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
  4. Anonymous
    2024-12-13T20:22:36+00:00

    It's been over two years since this question was asked and Microsoft still hasn't implemented a default setting. No wonder everyone hates Teams.

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-12-13T21:17:02+00:00

    Thanks to the comment by Adam Lemmon above, this autohotkey 4-liner fragment has been saving my sanity for a couple weeks now. My fingers are learning to remember ctrl-enter is send. Wrap it in proper ahk script and be happy.

    Note that although the window class is TeamsWebView, I am using the desktop client. As written it won't do anything for Teams in a web browser.

    ;Teams Chat cursed enter key workaround using autohotkey v1.1 
    ;Teams behaviour:
    
    ;  ctrl-enter always sends 
    
    ;  shift-enter always line feeds 
    
    ;  enter is _cursed_ because it changes functions depending on text entry decoration
    ;
    
    ;Solution: map enter -> shift-enter 
    
    ;            leave shift-enter 
    
    ;            use ctrl-enter to send 
    ;            spend more time & bytes writing comments rather than script commands
    
    ;
    ;originally this script checked for 'Chat' to be in the title, but that test breaks 
    
    ;when I 'Open chat in new window'.  So far, it seems that shift+enter and enter have the same  
    
    ;function in every other Teams window I use regularly. 
    
    #IfWinActive ahk_class TeamsWebView 
    
    enter:: 
    
      send +{enter} 
    
      return
    

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments