on.keychord_press = function(chord, key)
assert(#Editors > 0)
if chord == 'C-0' then
initialize_editors( --[[font height]] 20, Editors[1].filename, Editors[1].screen_top1)
elseif chord == 'C-=' then
initialize_editors(Editors[1].font_height+2, Editors[1].filename, Editors[1].screen_top1)
elseif chord == 'C--' then
initialize_editors(Editors[1].font_height-2, Editors[1].filename, Editors[1].screen_top1)
elseif chord == 'C-f' or chord == 'backspace' or chord == 'return' then
-- find in just the left-most pane for now
edit.keychord_press(Editors[1], chord, key)
elseif chord == 'pageup' or chord == 'pagedown' then
for _,editor in ipairs(Editors) do
edit.keychord_press(editor, chord, key)
end
end
end