Update Textfield.lua
- Removed buggy selection - Fixed a small bug
This commit is contained in:
@@ -720,6 +720,7 @@ return function(name)
|
|||||||
self.parent:setBG(obx, oby + n - 1, bg)
|
self.parent:setBG(obx, oby + n - 1, bg)
|
||||||
self.parent:setFG(obx, oby + n - 1, fg)
|
self.parent:setFG(obx, oby + n - 1, fg)
|
||||||
end
|
end
|
||||||
|
--[[
|
||||||
if(startSelX~=nil)and(endSelX~=nil)and(startSelY~=nil)and(endSelY~=nil)then
|
if(startSelX~=nil)and(endSelX~=nil)and(startSelY~=nil)and(endSelY~=nil)then
|
||||||
local sx,ex,sy,ey = getSelectionCoordinates(self)
|
local sx,ex,sy,ey = getSelectionCoordinates(self)
|
||||||
for n=sy,ey do
|
for n=sy,ey do
|
||||||
@@ -737,7 +738,7 @@ return function(name)
|
|||||||
self.parent:setBG(obx + xOffset, oby + n - 1, rep(tHex[selectionBG], line))
|
self.parent:setBG(obx + xOffset, oby + n - 1, rep(tHex[selectionBG], line))
|
||||||
self.parent:setFG(obx + xOffset, oby + n - 1, rep(tHex[selectionFG], line))
|
self.parent:setFG(obx + xOffset, oby + n - 1, rep(tHex[selectionFG], line))
|
||||||
end
|
end
|
||||||
end
|
end]]
|
||||||
if(self:isFocused())then
|
if(self:isFocused())then
|
||||||
local anchx, anchy = self:getAnchorPosition()
|
local anchx, anchy = self:getAnchorPosition()
|
||||||
--self.parent:setCursor(true, anchx + textX - wIndex, anchy + textY - hIndex, self.fgColor)
|
--self.parent:setCursor(true, anchx + textX - wIndex, anchy + textY - hIndex, self.fgColor)
|
||||||
|
|||||||
Reference in New Issue
Block a user