Post #2191:  you can use Obect non-modal keymap with this poll method:
return C.object and C.object.type in ('MESH',)
For mesh edit mode use Mesh keymap.