hotkey: Make enter checks more strict.
hotkey: Make enter checks more strict.

This should hopefully fix an obscure traceback we were seeing.

timabbott/zulip,synicalsyntax/zulip,verma-varsha/zulip,andersk/zulip,shubhamdhama/zulip,jackrzhang/zulip,hackerkid/zulip,andersk/zulip,punchagan/zulip,rht/zulip,kou/zulip,shubhamdhama/zulip,tommyip/zulip,timabbott/zulip,brainwane/zulip,kou/zulip,rht/zulip,amanharitsh123/zulip,Galexrt/zulip,synicalsyntax/zulip,rishig/zulip,rht/zulip,jackrzhang/zulip,synicalsyntax/zulip,kou/zulip,punchagan/zulip,mahim97/zulip,tommyip/zulip,shubhamdhama/zulip,kou/zulip,punchagan/zulip,andersk/zulip,verma-varsha/zulip,brockwhittaker/zulip,verma-varsha/zulip,Galexrt/zulip,Galexrt/zulip,dhcrzf/zulip,rishig/zulip,dhcrzf/zulip,Galexrt/zulip,kou/zulip,rishig/zulip,amanharitsh123/zulip,zulip/zulip,eeshangarg/zulip,shubhamdhama/zulip,mahim97/zulip,zulip/zulip,zulip/zulip,tommyip/zulip,mahim97/zulip,showell/zulip,hackerkid/zulip,synicalsyntax/zulip,mahim97/zulip,punchagan/zulip,hackerkid/zulip,brainwane/zulip,rishig/zulip,brainwane/zulip,Galexrt/zulip,timabbott/zulip,andersk/zulip,tommyip/zulip,eeshangarg/zulip,hackerkid/zulip,synicalsyntax/zulip,zulip/zulip,dhcrzf/zulip,brockwhittaker/zulip,verma-varsha/zulip,showell/zulip,rishig/zulip,jackrzhang/zulip,verma-varsha/zulip,verma-varsha/zulip,amanharitsh123/zulip,jackrzhang/zulip,zulip/zulip,jackrzhang/zulip,andersk/zulip,zulip/zulip,showell/zulip,tommyip/zulip,timabbott/zulip,shubhamdhama/zulip,andersk/zulip,showell/zulip,hackerkid/zulip,eeshangarg/zulip,punchagan/zulip,brainwane/zulip,mahim97/zulip,shubhamdhama/zulip,kou/zulip,jackrzhang/zulip,andersk/zulip,brockwhittaker/zulip,zulip/zulip,rht/zulip,brockwhittaker/zulip,eeshangarg/zulip,dhcrzf/zulip,brainwane/zulip,jackrzhang/zulip,timabbott/zulip,rht/zulip,rht/zulip,rishig/zulip,brockwhittaker/zulip,shubhamdhama/zulip,amanharitsh123/zulip,Galexrt/zulip,amanharitsh123/zulip,Galexrt/zulip,synicalsyntax/zulip,punchagan/zulip,rht/zulip,tommyip/zulip,tommyip/zulip,mahim97/zulip,eeshangarg/zulip,eeshangarg/zulip,brockwhittaker/zulip,dhcrzf/zulip,timabbott/zulip,showell/zulip,amanharitsh123/zulip,kou/zulip,hackerkid/zulip,rishig/zulip,punchagan/zulip,eeshangarg/zulip,showell/zulip,dhcrzf/zulip,dhcrzf/zulip,hackerkid/zulip,timabbott/zulip,brainwane/zulip,showell/zulip,brainwane/zulip,synicalsyntax/zulip