mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
text widget: handle ctrl-a (select all)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user