Changeset 738
- Timestamp:
- 06/27/09 14:47:03 (9 months ago)
- Files:
-
- 1 modified
-
trunk/lugre/widgets/lib.gui.widget.edittext.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lugre/widgets/lib.gui.widget.edittext.lua
r727 r738 66 66 function gWidgetPrototype.EditText:ClearText () self:SetText("") end 67 67 68 function gWidgetPrototype.EditText:AppendChar (char) 68 function gWidgetPrototype.EditText:AppendChar (char) 69 69 if (not char) then return end 70 70 self.text = self.text .. char … … 79 79 80 80 81 function gWidgetPrototype.EditText:on_focus_keydown (key,char) 81 function gWidgetPrototype.EditText:on_focus_keydown (key,char) 82 82 if (key == key_return) then 83 83 self:on_return() … … 101 101 return true 102 102 elseif (true) then 103 if ((not self.params.bNumbersOnly) or (char and IsNumber(char))) then 103 if (type(char) == "boolean") then return true end 104 if ( (not self.params.bNumbersOnly) or 105 (char and IsNumber(char)) ) then 104 106 self:CheckClearOnFirstKeyDown() 105 107 self:AppendChar(char,unicodechar)
