Also get rid of the fiction of a place for global vs pane-specific key handling by mode.
FJ4R6IH6EDXQMUYERIB6MFIFSP7QTXLY6EYSSGJP5QIFUV27WY5AC
TKAKGUAQBDJWK6DPAQC4JJYCAJFVCWNJMKBJIRDH2M3BGEZNSENAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
3JDTNKUEWV3V2ABWCOAR4I5LHY3R4MARCFAAQ3KEYGKYHQOXCC2QC
DUQDA3U7VNWZSKRVACS6G3FTEB5VXRR7FJQU5NYZ4EFSGL3XUU5QC
QYGOLYADND5KMPGQUFQMVF4O2QYSLTQXF7RDLQXORPKTR6EFASIAC
DIVBY22FIFTEVZ3TMPJZFTC55G3GU6SBXQ6ILPGNSFPBWKXWGLPQC
DGMHQDVOII6WF2OJNHP42AYYMCMAIM266I3KHED74OBYMIWWAQXQC
IGYF6FQOON2BT5JFBELGFN2AGELRISIGNOXKWKD2DY5P5BXEDTOAC
-- global hotkeys go here
if chord == 'C-return' then
Display_settings.show_palette = true
return
end
-- hotkeys operating on the cursor pane -- only if change would be visible
-- on screen