BasicChatMods

39 - Edit box history without alt

Would like to see the option to go through the edit box history by just using the up and down arrows, without pressing alt. Coming from other chat addons and just got so used to that feature.

Saving the last 5-10 edit box history commands between sessions would be nice too, but not really all that important.

User When Change
funkydude Aug 09, 2016 at 14:48 UTC Changed status from New to Waiting
Daemys Aug 07, 2016 at 07:30 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of funkydude funkydude Aug 09, 2016 at 14:48 UTC - 0 likes

    Thanks, I'll look into this.

  • Avatar of Daemys Daemys Aug 07, 2016 at 15:16 UTC - 0 likes

    Hm, I know Prat and PhanxChat both still do it. Looking at some of PhanxChat code it looks like these functions still work...

    if key == "UP" then
    	return IncrementHistorySelection(self, -1)
    elseif key == "DOWN" then
    	return IncrementHistorySelection(self, 1)
    

    And also...

    editBox:SetAltArrowKeyMode(not self.db.EnableArrows)
    if not history[editBox] then
    	hooksecurefunc(editBox, "AddHistoryLine", AddHistoryLine)
    	editBox:HookScript("OnArrowPressed", OnArrowPressed)
    	history[editBox] = {}
    	index[editBox] = 1
    

    Don't know if that actually helps or not, but I didn't want to just post the whole modules lua. I don't know if there is like a coder's etiquette or anything like that lol. It's on GitHub if you need to look at more.

  • Avatar of funkydude funkydude Aug 07, 2016 at 09:58 UTC - 0 likes

    Moving up and down without pressing ALT was broken by blizzard many patches ago with no workaround to my knowledge.

  • 3 comments

Facts

Last updated
Aug 09, 2016
Reported
Aug 07, 2016
Status
Waiting - Waiting for more information.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees