8 - Right Click set value without closing the dropdown
What is the enhancement in mind? How should it look and feel?
I find myself for example testing out different fonts and then constantly scrolling down the dropdown over and over again to try the next font.
It would be nice if when right clicked instead of left click the dropdown would stay open so it is easy to try out the next one without opening it up again and scrolling down and finding the last used item.
Please provide any additional information below.
local function ContentOnClick(this, button) local self = this.obj self:Fire("OnValueChanged", this.text:GetText()) if self.dropdown and button == "LeftButton" then self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown) end end
local function GetContentLine() local frame if next(contentFrameCache) then frame = table.remove(contentFrameCache) else frame = CreateFrame("Button", nil, UIParent) --frame:SetWidth(200) frame:RegisterForClicks("LeftButtonUp", "RightButtonUp") ...
and removed this completely. Think it still works since it is released when it loses focus anyway.
local function ClearFocus(self) if self.dropdown then self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown) end end
| User | When | Change |
|---|---|---|
| mangeg | Oct 11, 2010 at 07:40 UTC | Changed description:- What is the enhancement in mind? How should it look and feel? + **What is the enhancement in mind? How should it look and feel?**\\ I find myself for example testing out different fonts and then constantly scrolling down the dropdown over and over again to try the next font. It would be nice if when right clicked instead of left click the dropdown would stay open so it is easy to try out the next one without opening it up again and scrolling down and finding the last used item. |
| mangeg | Oct 10, 2010 at 08:32 UTC | Changed description: frame:RegisterForClicks("LeftButtonUp", "RightButtonUp")
...
<</code>>
+
+ and removed this completely. Think it still works since it is released when it loses focus anyway.
+
+ <<code lua>>
+ local function ClearFocus(self)
+ if self.dropdown then
+ self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
+ end
+ end
+ <</code>> |
| mangeg | Oct 10, 2010 at 04:12 UTC | Create |