#1070808 zsh(1) changes behavior of the keypad Enter key and didn't restore it on exiting

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
WHR
Date:
2024-05-09 14:15:07 UTC
Severity:
normal
#1070808#5
Date:
2024-05-09 14:13:00 UTC
From:
To:
Hello.

I actually don't use zsh myself, but sometimes when I comes to collaborate
with others in tmux(1), where their login shell is zsh, or I just need to test
something in zsh, I always encounters this annoying bug.

First, zsh changes the behavior of the keypad Enter key, so this key didn't
work in zsh at all; this is already very inconvenient for me, as I'm very used
to pressing this Enter key on the keypad. To make it worse, zsh didn't revert
this change on exiting, so even I exited zsh(1), the Enter key is still
non-functional in my parent shell (bash(1) in this case), and I have to
reset(1) the terminal to recover.

To reproduce:
1, Run zsh from bash
   (once in zsh, the keypad Enter key is no longer functional)
2, Exit zsh by using 'exit' command or pressing ^D
   (the keypad Enter key remains non-functional even in bash)