There isn't yet a way to unmaximize.
3JDTNKUEWV3V2ABWCOAR4I5LHY3R4MARCFAAQ3KEYGKYHQOXCC2QC
7RVHGLQKGOPWHUXZP2Z7ZK4TCJBEBTUUGXXBJPSIXF3M337YZJ2QC
DIVBY22FIFTEVZ3TMPJZFTC55G3GU6SBXQ6ILPGNSFPBWKXWGLPQC
J3ER7DFO2TXYUMJAXZUFEHQNLFDNIXSYDTE7HEFGQ2RYB3A6RFPAC
L2Z26UKWMGFSOB6NM4BRH4533D5A7CDYEKHKOSWA3Q5BGJWK2QGAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
X22MOJHFLXMZQJN4IP2HAXIIVD2ALPR4EO5V5YDYF6QPXS7ZNB6QC
DGMHQDVOII6WF2OJNHP42AYYMCMAIM266I3KHED74OBYMIWWAQXQC
CZY3IDERLI6MTKKKMX6QLLERSPM2ZJ57NGQRKILJBM7S5PYPQ3XAC
IZAQ4C7DZ3OTGUPDYVRYJPHO6HT67HL7DZLPNIPWINBHNNLK42OAC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
GWS6ZSRN42IR33F5MKX7XQM4EREIZKPUM73EBZUFEZACDIMNUIGQC
draw_normal_mode()
if Display_settings.mode == nil then
draw_normal_mode()
elseif Display_settings.mode == 'maximize' then
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
pane.top = Header_height + Margin_above
pane.left = App.screen.width/2 - 20*App.width(Em)
pane.right = App.screen.width/2 + 20*App.width(Em)
edit.draw(pane)
else
print(Display_settings.mode)
assert(false)
end
if Display_settings.mode == nil then
mouse_pressed_in_normal_mode(x,y, mouse_button)
elseif Display_settings.mode == 'maximize' then
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
edit.mouse_pressed(pane, x,y, mouse_button)
else
print(Display_settings.mode)
assert(false)
end
end
function mouse_pressed_in_normal_mode(x,y, mouse_button)
end
function handle_maximize_mode_keychord(chord, key)
-- global hotkeys
if chord == 'C-return' then
Display_settings.show_palette = true
return
end
-- operate on pane
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
if chord == 'C-e' then
if pane.show_cursor then
command.exit_editing()
else
command.edit_note_at_cursor()
end
end
edit.keychord_pressed(pane, chord, key)