mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-09 15:58:22 +00:00
Make controls nicer for OSX users
These operations are done via the command button on OSX.
This commit is contained in:
@@ -275,20 +275,20 @@ This color is used to indicate the selected range of text.
|
|||||||
|
|
||||||
moveCaretRight(self, Backend.isKeyDown('lshift', 'rshift'))
|
moveCaretRight(self, Backend.isKeyDown('lshift', 'rshift'))
|
||||||
|
|
||||||
elseif event.key == 'x' and Backend.isKeyDown('lctrl', 'rctrl') then
|
elseif event.key == 'x' and Backend.isKeyDown('lctrl', 'rctrl', 'lgui', 'rgui') then
|
||||||
|
|
||||||
copyRangeToClipboard(self)
|
copyRangeToClipboard(self)
|
||||||
deleteRange(self)
|
deleteRange(self)
|
||||||
|
|
||||||
elseif event.key == 'c' and Backend.isKeyDown('lctrl', 'rctrl') then
|
elseif event.key == 'c' and Backend.isKeyDown('lctrl', 'rctrl', 'lgui', 'rgui') then
|
||||||
|
|
||||||
copyRangeToClipboard(self)
|
copyRangeToClipboard(self)
|
||||||
|
|
||||||
elseif event.key == 'v' and Backend.isKeyDown('lctrl', 'rctrl') then
|
elseif event.key == 'v' and Backend.isKeyDown('lctrl', 'rctrl', 'lgui', 'rgui') then
|
||||||
|
|
||||||
pasteFromClipboard(self)
|
pasteFromClipboard(self)
|
||||||
|
|
||||||
elseif event.key == 'a' and Backend.isKeyDown('lctrl', 'rctrl') then
|
elseif event.key == 'a' and Backend.isKeyDown('lctrl', 'rctrl', 'lgui', 'rgui') then
|
||||||
|
|
||||||
selectRange(self, 0, #self.value)
|
selectRange(self, 0, #self.value)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user