2023-11-15 14:06:56 +00:00
|
|
|
on.keychord_press = function(chord, key)
|
2023-11-15 17:27:34 +00:00
|
|
|
if chord == 'C-=' then
|
2023-11-19 21:15:06 +00:00
|
|
|
update_font_settings(Current_pane.editor_state.font_height+2)
|
2023-11-15 17:27:34 +00:00
|
|
|
elseif chord == 'C--' then
|
2023-11-19 21:15:06 +00:00
|
|
|
update_font_settings(Current_pane.editor_state.font_height-2)
|
2023-11-15 17:27:34 +00:00
|
|
|
elseif chord == 'C-0' then
|
|
|
|
update_font_settings(20)
|
2023-11-20 18:26:14 +00:00
|
|
|
elseif Current_pane.editor_state.cursor_x then
|
|
|
|
-- send keys to editor if cursor is visible
|
2023-11-19 21:15:06 +00:00
|
|
|
edit.keychord_press(Current_pane.editor_state, chord, key)
|
2023-11-15 17:27:34 +00:00
|
|
|
end
|
2023-11-19 21:15:06 +00:00
|
|
|
end
|