HOW TO: Unbind your enter key to prevent inadvertent toxicity

Karunamon·4/12/2017, 7:47:52 PM·44 votes·49,400 views

These steps are no longer necessary - the ability to disable ally chat is now a part of the client.

An explanation for how you can disable your own ability to chat to completely remove the possibility of yelling at your Wood 5 team and winding up item 3133'ed after a bad game.

If you can't hit enter, you can't send chat.The game client lets you rebind most of your keys, but critically, enter isn't one of them. This means we have to use something else if we want to change what enter does.


Instructions

(Last updated 2018/06/08)

Windows

NOTE: CURRENTLY NOT WORKING 100% (10/2018). You must currently relaunch autohotkey after the game has loaded to have it capture the enter key properly. Looking at alternative options now.

  1. Install AutoHotKey
  2. Copy the text in the box below:

#ifwinactive League of Legends (TM) Client

*Enter::return

*NumpadEnter::return

  1. Open notepad, hit paste
  2. Save the file somewhere you can easily access, and name it unbindEnterLoL.ahk
  3. Load the file with AutoHotKey.

Note: if you find that this isn't working correctly, you may need to run AutoHotKey as administrator

Mac

  1. Install HammerSpoon
  2. When it starts for the first time, you'll be prompted to grant it accessibility access. Ensure you do this, or it won't work.
  3. Copy the text in the box below:

enterUnbind = hs.hotkey.new({}, 'return', function () end ) hs.window.filter.new('League of Legends (TM) Client') :subscribe(hs.window.filter.windowFocused, function() enterUnbind:enable() end) :subscribe(hs.window.filter.windowUnfocused, function() enterUnbind:disable() end)

  1. In Hammerspoon's menu, select "open config"
  2. Paste the text you just copied into the text editor that appears
  3. Save the file.
  4. In Hammerspoon, click on "Reload config"

Note: if this is not working, you need to run the game in windowed, or fullscreen borderless mode. If the game is set to fullscreen, the keybind will not activate properly. As an alternative, you can use this text, which will disable enter as long as Hammerspoon is running. You will need to close it outright after exiting the game or enter still won't work!

enterUnbind = hs.hotkey.new({}, 'return', function() end):enable()


Now, if the League client is active, Enter does nothing, and you will be unable to send outgoing messages. This will have no impact on the rest of your computer.

Once you feel that you've cooled off, just turn off AutoHotKey/Hammerspoon, and Enter will work as normal.

Hope this helps! [slayer-pantheon-thumbs]

102 Comments

Karunamon4/12/2017, 7:50:40 PM8 votes

Oh yeah, I should note that this program doesn't interact with the League client in any way, and so is not a danger to your account. It is not a modification of the game or its files, it doesn't read the game's memory, it doesn't give you any advantage in game.

Hi im Kovar9/12/2017, 5:02:45 AM5 votes

I wish I read this before getting banned 3 days ago, am I right....

Reaper Soraka12/26/2017, 7:29:04 PM4 votes

just remember that you can't type so you don't end up typing YOU (D)UMB NOOB STOP (F)UCKING GOING IN ALONE JRGI45PTYURG0REGKJRE&$#($#(

next thing you'll see are question marks spammed on you, you'll have no summoner spells and no way to tell them you're just as dumb as they are.

Report Valkyrja10/9/2017, 11:16:30 PM2 votes

Could an admin or something confirm that this is not against the rules of ur game to use?

TILTED2TRICKPONY12/4/2017, 12:33:57 AM2 votes

much love

You are terrible1/31/2018, 4:05:45 PM2 votes

Still works. I owe you one.

420 grams4/12/2017, 8:43:50 PM2 votes

Or just, you know, not be toxic?

AeroWaffle4/13/2017, 12:59:35 AM2 votes

Unfortunately, quite a few people would just rush to turn it off mid match when they feel like they really need to tear into a player. But still something to give them a little extra time to think about what they're about to do.

MBiY3/18/2018, 3:34:02 PM2 votes

Is this legal a admin told you that?

WhiteMexicanJew4/7/2018, 5:17:44 AM2 votes

didn't work for me at all not sure if its out dated or what but after loading it with autohotkey, it does nothing.

Chibi Illaoi4/24/2018, 7:28:51 PM2 votes

An absolute miracle for people like me who have trouble controlling our freaking Mouths but who wish to be better.

Thanks for this, this will help win a lot more games and help other players enjoy their time on the rift.

Makes no sense why riot wouldn't make removing the chat functionality as a possibility anyway

HPLT10/9/2018, 4:25:11 PM2 votes

I am currently working on a Chat restriction script, which shall reset once you get out of the game. If you can wait some time I will make it available. Compared to this method, it will also allow Input similar to the chat restriction implemented by Riot. You can define how many initial chats you wanna have available, how long the chat restriction will last and how many additional chat prompts you get after the chat restriction timer elapsed. I hate beeing completly cut off from the communication but often find myself arguing too hard - Thus I personally prefer to be permantly chat restricted. However Riot has no intention to implement that.

HPLT10/10/2018, 3:09:03 AM2 votes

https://www.reddit.com/r/leagueoflegends/comments/9mvoly/i_wrote_a_self_chat_restriction_script_for_league/

Here you go. I made it as easy as possible to load. In the loading screen you just have to tab out and use the left mouse button once - A tooltip that the script successfully loaded will appear at your mouse cursor.

Cheers :)

Ofc setting the available chat messages (and tooltip time) to 0 will have the same effect as the script above.

Pickle Pick6/29/2019, 1:17:58 AM1 votes

thank you so much now i can actually play and stick with my word of not flaming anyone

trísh10/9/2018, 3:57:25 PM1 votes

is there a way to have this permanently enabled?

Karunamon8/19/2019, 8:25:04 PM1 votes

This is now no longer necessary. As of a patch or two ago, there is an in-client ability to disable ally chat that works just like the checkbox to disable all chat.

Could a kind moderator lock this thread? Thanks!

sleepysithlord12/26/2017, 7:25:23 PM1 votes

Does this work on macs

MaliceW12/21/2017, 7:43:24 AM1 votes

Up? Can one of the rioter confirm if that's not bannable?

Terozu4/13/2017, 9:23:09 AM1 votes

You could also just unbind your enter key in the ingame options menu...

RΞDBΞARD9/14/2019, 12:43:30 AM1 votes

PUSH!

Götterdämmerung4/27/2019, 12:52:44 AM1 votes

Thanks