12 lines
439 B
Plaintext
12 lines
439 B
Plaintext
on.keychord_press = function(chord, key)
|
|
if chord == 'C-=' then
|
|
update_font_settings(Current_pane.editor_state.font_height+2)
|
|
elseif chord == 'C--' then
|
|
update_font_settings(Current_pane.editor_state.font_height-2)
|
|
elseif chord == 'C-0' then
|
|
update_font_settings(20)
|
|
elseif Current_pane.editor_state.cursor_x then
|
|
-- send keys to editor if cursor is visible
|
|
edit.keychord_press(Current_pane.editor_state, chord, key)
|
|
end
|
|
end |