text widget: handle ctrl-a (select all)

This commit is contained in:
airstruck
2016-01-21 15:38:35 -05:00
parent 19bb0b935f
commit fce7b2698c

View File

@@ -288,6 +288,10 @@ This color is used to indicate the selected range of text.
pasteFromClipboard(self)
elseif event.key == 'a' and Backend.isKeyDown('lctrl', 'rctrl') then
selectRange(self, 0, #self.value)
end
return false
end)