/usr/lib/shellex/conf/40-escape is in shellex 0.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | # vim:ft=zsh
# Make zsh exit on escape
# © 2013 Axel Wagner and contributors (see also: LICENSE)
function _shellex_exit {
fc -P
exit
}
zle -N _shellex_exit
bindkey '^[' _shellex_exit
|