Page 1 of 1

[Fixed] KeyPress Event even when chat is opened

Posted: 18 May 2014, 14:45
by steeffeen
Hey there,

It has come to my attention that since MP3 a manialink script still receives the KeyPress event while someone is typing in the chat on a server.
(Thanks phil)

So for example the most-common restart key "Delete" will get triggered if you want to delete some characters from the message you just typed in. Now the game mode will think you actually want to hit the Delete key. In game modes like obstacle that leads to an unwanted behavior.

This wasn't the case before MP3. the client-side scripts didn't receive events when the player is typing into the server chat.
I think it can be helpful that the script receives these events but there must by a way to determine that it's actually part of a chat message, like a boolean property of the script "IsChatOpen".

Imagine a game mode where you do additional stuff with the usual character keys (A-Z), then you wouldn't be able to chat at all because the game mode will go crazy.

A fix would be greatly appreciated.

Thanks in advance,
Steff

Re: KeyPress Event even when chat is opened

Posted: 18 May 2014, 14:50
by phil13hebert
I can confirm this behaviour that wasn't happening before mp3. In a gamemode like Obstacle, this can be quite annoying cause you don't want to always restart from 1st cp just because you typed something.

I can also tell you that this happen to many obstacle players.

Re: KeyPress Event even when chat is opened

Posted: 18 May 2014, 15:24
by fleo
I was already happening with modes with weapon choice, for instance when you were typping in french "é" which is on the same key as number 2, this chose the weapon number 2.

Re: KeyPress Event even when chat is opened

Posted: 18 May 2014, 18:44
by TMarc
as short time workaround until this is fixed I suggest all players assign new keys to the respawn and give up, e.g. F8 and F9.

Re: KeyPress Event even when chat is opened

Posted: 23 Jun 2014, 15:19
by xbx
hi.

I was checking on this one, but I think I already did fix it on may 20th.
can you confirm it is indeed fixed in current version?

thx!

Re: KeyPress Event even when chat is opened

Posted: 23 Jun 2014, 15:35
by phil13hebert
xbx wrote:hi.

I was checking on this one, but I think I already did fix it on may 20th.
can you confirm it is indeed fixed in current version?

thx!
I can confirm that it is now fixed. Thank you.

Re: [Fixed] KeyPress Event even when chat is opened

Posted: 23 Jun 2014, 15:36
by steeffeen
ty :thumbsup: