2022-12-24 04:39:54 +00:00
|
|
|
on.keychord_press = function(chord, key)
|
2022-12-18 02:32:18 +00:00
|
|
|
if chord == 'C-=' then
|
|
|
|
-- zoom in
|
|
|
|
Viewport.zoom = Viewport.zoom+0.1
|
|
|
|
elseif chord == 'C--' then
|
|
|
|
-- zoom out
|
|
|
|
Viewport.zoom = Viewport.zoom-0.1
|
|
|
|
elseif chord == 'C-0' then
|
|
|
|
-- reset zoom
|
|
|
|
Viewport.zoom = 1.0
|
|
|
|
elseif Cursor_node then
|
2022-12-24 16:50:49 +00:00
|
|
|
edit.keychord_press(Cursor_node.editor, chord, key)
|
2022-12-18 02:32:18 +00:00
|
|
|
end
|
|
|
|
end
|