diff --git a/README.md b/README.md index 32cfcc5..ae08baa 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Every of the listed features below, can be completely disabled in that menu in c *Copy website URLs from the chat, transforms CLINKs into real items and handles quest links.* - **Chat Tweaks** - *Allows to scroll using the mouse wheel and enables sticky chat channels.* + *Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up.* - **Darkened UI** *Turns the entire interface into darker colors.* diff --git a/mods/chat-tweaks.lua b/mods/chat-tweaks.lua index 02805c2..eab7672 100644 --- a/mods/chat-tweaks.lua +++ b/mods/chat-tweaks.lua @@ -3,7 +3,7 @@ local scrollspeed = 1 local module = ShaguTweaks:register({ title = "Chat Tweaks", - description = "Allows to scroll using the mouse wheel and enables sticky chat channels.", + description = "Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up.", enabled = true, }) @@ -34,6 +34,9 @@ module.enable = function(self) ChatTypeInfo.RAID_WARNING.sticky = 1 ChatTypeInfo.CHANNEL.sticky = 1 + -- repeat message without pressing + ChatFrameEditBox:SetAltArrowKeyMode(false) + for i=1, NUM_CHAT_WINDOWS do -- enable mouse wheel scrolling _G["ChatFrame" .. i]:EnableMouseWheel(true)