QRHK34F2WMGVH44UZGT4ZMLMF5W6GL23YZ723UAD6ZEADYOMTEBAC
RTG3J32S5SQX6KC74FFHSK2MAJCMISFUHANSDCIFQA7TGDGDORGAC
23W3KW6BH355C3JYD7LF65FOZENQWWO5PUEAXEBZOV7TMTOQPZQQC
LW6UME22NIRDLYNQDP47SLYT2ZEBD4HMHQOJNXJRRXQYVMNF4IGAC
VAMA5WWY2UDCK4UPFY4YV2BM6ETRCQTY6IP3AVKS4L3VHLBYFS2AC
IGYF6FQOON2BT5JFBELGFN2AGELRISIGNOXKWKD2DY5P5BXEDTOAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
D4TYWCTVOBD2WY566CAIJTDYJU26CDZIRCU4J44HYBNYQRIWP7FQC
F7MP5BERVKCYMWFWQ7EBOJFYY3FYWFVLYENXTWKPREGDLFRESPBAC
IUBUKOBFGTLXNHRNYGVN35F5OQISTGQDB27WMS2LXBVVBXCXGUDQC
S4U35JJQWC3CBNKHAEZ2DYEGUT5L3UYVAO6PJ5R7HSTD53KWVAXQC
MO4B3HJQL7KU2CETG74EV367YPREQN3Z5DJP2MNHITVW2KQRXRCAC
L2R5WULWN44SCNUPP7R7I2AQCWQR6D3E2YZA35RBXZAR2LGC6LQQC
CSSNHSKE7W2VYWLPXDUQF5WQ5KPX3SWJIQ5TQS6CYDXZHUTTYJRQC
NGCYNQEAAROJCQKUJDLGZALNYAU5MTNTGW4XBG6MGAHSHFG6PPMAC
ZTHYA5WM6U6RY57HKV2UDBDJ3W7DDQOZZKMV6G4N6EHFGNOVO5PQC
V4ZZDSYWKYREINXLP6NZ4O2JK6J6FEWIKA7E22FUO7TTJAXGKPOAC
if chord == 'C-e' then
command.exit_editing()
else
--? print(('%s pressed in editor pane'):format(chord))
local old_top = {line=pane.screen_top1.line, pos=pane.screen_top1.pos}
edit.keychord_pressed(pane, chord, key)
--? print('screen top after:', pane.screen_top1.line, pane.screen_top1.pos)
Editable_cursor_pane_updated_screen_top = not eq(old_top, pane.screen_top1)
if Editable_cursor_pane_updated_screen_top then
--? print('updating viewport based on screen top')
Display_settings.y = up_edge_sy(Cursor_pane.col, Cursor_pane.row) + y_of_schema1(pane, pane.screen_top1)
--? print(('display settings.y is now %d'):format(Display_settings.y))
Surface.cursor_on_screen_check = true -- cursor was on screen before keystroke, so it should remain on screen after
end
update_metadata(pane)
end
command.edit_note_at_cursor()
end
return
end
if pane.editable then
--? print(('%s pressed in editor pane'):format(chord))
local old_top = {line=pane.screen_top1.line, pos=pane.screen_top1.pos}
edit.keychord_pressed(pane, chord, key)
--? print('screen top after:', pane.screen_top1.line, pane.screen_top1.pos)
Editable_cursor_pane_updated_screen_top = not eq(old_top, pane.screen_top1)
if Editable_cursor_pane_updated_screen_top then
--? print('updating viewport based on screen top')
Display_settings.y = up_edge_sy(Cursor_pane.col, Cursor_pane.row) + y_of_schema1(pane, pane.screen_top1)
--? print(('display settings.y is now %d'):format(Display_settings.y))
Surface.cursor_on_screen_check = true -- cursor was on screen before keystroke, so it should remain on screen after
keychord_pressed_on_immutable_pane(pane, chord, key)