Prevent tabbing in numberbox textinputs

This commit is contained in:
Kenny Shields 2014-01-18 13:14:10 -05:00
parent 8db404e1ae
commit eb92fdbb00
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
================================================
Version 0.9.7.2 - Alpha (Release Date TBD)
================================================
[FIXED] ability to use the tab button in numberbox textinputs
================================================ ================================================
Version 0.9.7.1 - Alpha (January 15 - 2014) Version 0.9.7.1 - Alpha (January 15 - 2014)
================================================ ================================================

View File

@ -32,6 +32,7 @@ function newobject:initialize()
input.parent = self input.parent = self
input:SetSize(50, 20) input:SetSize(50, 20)
input:SetUsable({"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ".", "-"}) input:SetUsable({"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ".", "-"})
input:SetTabReplacement("")
input:SetText(self.value) input:SetText(self.value)
input.OnTextChanged = function(object) input.OnTextChanged = function(object)
local value = self.value local value = self.value