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
    2025-01-10T17:38:20+00:00

    I found the flaw in the simple script above. There is a side-effect that bullet and number lists no longer work like you would think.

    In those formatting modes, enter means new bullet, shift enter means a break in the current bullet.

    I haven't been able to find a programmatic way to know which of the two entry modes teams is using to fix this. I choose to workaround by typing the list, then adding the formatting afterwards, because for me that is a rare event, but sending an incomplete message wasn't.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-03-04T10:20:52+00:00

    This is one of the only comments here that makes any sense. Workarounds do not solve this issue and most definitely avoid addressing the elephant in the room. This is a catastrophic feature deletion. We used to be able to disable "Enter as send". Some employee has actively made a decision to completely wreck the product by making Enter trigger the send button. It is way beyond bad, it's quite sinister. You don't do this by accident; you definitely don't do this if you have a level of rational intelligence. You only do this deliberately and vindictively. It's deeply concerning because this is not a joke; it's a serious tool being used as someone's idea of a prank, possibly quite high up to get this signed off. I think we need a deeper investigation into those responsible for this, and they need to be named and investigated.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-03-18T00:47:57+00:00

    I just came here almost 2.5 years after this original question was posted because this is still a problem. It drives me crazy that huge tech corporations say that they listen to their customers - evidence in point that they absolutely do not listen to us at all. It is ridiculous to have the return key send the message - it leads to rework and frustration.

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2025-03-22T16:33:47+00:00

    Tell me about it. You can't even remap it using your PowerToys.

    I have a case against Microsoft that is solid. I have documented their support team lying refusing to release telephone transcripts that I specifically allowed so that I could get a copy because I knew beforehand what they would say. or the damages.

    I can't be bothered because I don't trust the ADR either. At best they give you refund not the cost of all the time required to put a case together.

    One of the idiots' excuses for not sending me the transcript was that you are going to use it against me. That is an excuse worse than the crime.

    But Google is just as bad. Then they have these cheap solicitors who can get paid anywhere else pretending to be independent volunteers doing it for the good of community who don't understand the technical language and report you when you tell them what they are.

    These cheap solicitors get spanked on daily basis by courts in the UK on daily basis but here they sound tough resorting to grandstanding, threats, intimidation when they really know Jack. Pathetic the whole of them.

    It is an obvious design flaw that they are keeping in there for other reasons. Yet another tool of control.

    Welcome to 1984

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2025-04-06T17:02:47+00:00

    I finally did this script for AutoHotkey as I am fed-up with waiting. It works. It swaps Enter for Shift Enter. So, whiles running Enter key is a line feed and **** Enter Sends: I have uploaded it on their site as well. You can add other apps and sites to the list.

    #Requires AutoHotkey v2.0

    ; List of applications/websites where the Enter/Shift+Enter swap should be active

    ; Format: Window title must contain one of these strings (case-insensitive)

    chatApplications := [

    "WhatsApp",      ; WhatsApp Desktop
    
    "ChatGPT",       ; ChatGPT
    
    "Claude",        ; Claude AI
    
    "Anthropic",     ; Claude/Anthropic
    
    "Copilot",       ; Microsoft Copilot    
    
    "Perplexity",    ; Perplexity AI
    
    "Telegram"       ; Telegram Desktop
    

    ]

    ; Check if the active window is a chat application

    IsActiveChatApp() {

    activeTitle := WinGetTitle("A")
    
    for app in chatApplications {
    
        if InStr(activeTitle, app, true) {
    
            return true
    
        }
    
    }
    
    return false
    

    }

    ; Swap Enter and Shift+Enter only in chat applications

    #HotIf IsActiveChatApp()

    ; Enter becomes Shift+Enter
    
    Enter:: {
    
        Send "+{Enter}"
    
    }
    
    ; Shift+Enter becomes Enter
    
    +Enter:: {
    
        Send "{Enter}"
    
    }
    

    #HotIf

    ; Create a tray menu to allow users to edit the application list

    A_TrayMenu.Add("Edit Application List", EditAppList)

    A_TrayMenu.Add() ; Add a separator line

    A_TrayMenu.Add("Reload Script", ReloadScript)

    A_TrayMenu.Add("Exit", ExitScript)

    ; Function to edit the application list

    EditAppList(*) {

    ; Join the array into a comma-separated string
    
    appListText := ""
    
    for index, app in chatApplications {
    
        appListText .= app
    
        if index < chatApplications.Length {
    
            appListText .= ", "
    
        }
    
    }
    
    ; Show input box with current list
    
    newList := InputBox("Enter application names, separated by commas:", "Edit Application List", , appListText)
    
    ; Process the new list if user didn't cancel
    
    if !newList.Result = "Cancel" {
    
        ; Clear current list
    
        chatApplications.Length := 0
    
        ; Split by comma and trim whitespace
    
        appArray := StrSplit(newList.Value, ",")
    
        for app in appArray {
    
            appTrimmed := Trim(app)
    
            if appTrimmed != "" {
    
                chatApplications.Push(appTrimmed)
    
            }
    
        }
    
        ; Reload script to apply changes
    
        Reload
    
    }
    

    }

    ; Function to reload the script

    ReloadScript(*) {

    Reload
    

    }

    ; Function to exit the script

    ExitScript(*) {

    ExitApp
    

    }

    ; Show a startup tooltip

    ToolTip("Enter/Shift+Enter Swap Active`nRight-click tray icon for options", 1000, 700)

    SetTimer () => ToolTip(), -3000 ; Remove after 3 seconds

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments