mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Reimplement text edit scrolling in C++
* And update some corelib APIs
This commit is contained in:
@@ -22,10 +22,14 @@ function UIPopupMenu:display(pos)
|
||||
currentMenu:destroy()
|
||||
end
|
||||
|
||||
if pos == nil then
|
||||
pos = g_window.getMousePosition()
|
||||
end
|
||||
|
||||
rootWidget:addChild(self)
|
||||
self:setPosition(pos)
|
||||
self:grabMouse()
|
||||
self:grabKeyboard()
|
||||
--self:grabKeyboard()
|
||||
currentMenu = self
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user