Feature - Implemented Recall previous chat entries

Sentrion

Member
In KoL, one is able to repeat a previous command or line or whatever in chat by pressing shift+up, and similarly move forward through history with shift+down. Could this be implemented in mafia's chat as well?
 

Veracity

Developer
Staff member
I recently noticed this, myself.

Looking at lchat, up arrow (38) and down arrow (40) cycle through chat history.
Looking at mchat, ditto for those keys, and left arrow (37) and right arrow( 39) move among tabs.

Now, looking at ChatFrame.ChatEntryListener, I see code to make KeyEvent.VK_UP and KeyEvent.VK_DOWN to do stuff with the chat history. I don't know why that is not working for me.

Which is to say, this feature should already be there, but isn't working for some people - including you and me.

I'll look at it.
 

Veracity

Developer
Staff member
The reason it didn't work was because it was only half implemented: it never registered up and down arrows as keys of interest, and it never actually maintained the history list of chat commands you've entered.

Revision 14857 finishes the job.

I use simple up arrow and down arrow, rather than requiring them to be shifted.
 
Last edited:
Top