It is currently impossible to access modal keymaps' event values (from
propvalue enum) from python code (for API introspection).
This is needed for i18n messages extraction (see D15607).
NOTE: those changes will be committed in two different commits (one per
file).
This is an alternative fix to the solution proposed in D15607.