In the 3D View, the "Animation" keymap is not used, but the mode specific ones. So the shortcut editing code should use these too, just like the default keymap does.