aboutsummaryrefslogtreecommitdiffstats
path: root/input.lua
diff options
context:
space:
mode:
Diffstat (limited to 'input.lua')
-rw-r--r--input.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.lua b/input.lua
index 64f2ced..87d980e 100644
--- a/input.lua
+++ b/input.lua
@@ -36,7 +36,7 @@ return function(w)
w.info.text = w.info.text or ""
w.info.cursor = math.min(w.info.cursor or w.info.text:len(), w.info.text:len())
- local id = core.generateID()
+ local id = w.id or core.generateID()
local pos, size = group.getRect(w.pos, w.size)
mouse.updateWidget(id, pos, size, w.widgetHit)
keyboard.makeCyclable(id)