mirror of
https://github.com/airstruck/luigi.git
synced 2026-02-22 03:46:52 -07:00
add keyboard focus
This commit is contained in:
@@ -14,6 +14,7 @@ return function (self)
|
||||
type = 'text',
|
||||
align = 'middle center',
|
||||
margin = 0,
|
||||
canFocus = false,
|
||||
}
|
||||
|
||||
local increment = self:addChild {
|
||||
@@ -31,7 +32,7 @@ return function (self)
|
||||
local function updateValue ()
|
||||
if not self.options then return end
|
||||
local option = self.options[self.index]
|
||||
self.value = option.value
|
||||
self:setValue(option.value)
|
||||
view.text = option.text
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user