EF_NUMPAD_KEY flag for ui::KeyEvent

Added a flag to distinguish between a KeyEvent that originates from
a number pad key and one that does not, where the KeyboardCode is
the same. For example, VKEY_LEFT can originate both from the cursor
block and the number pad '4' key, and the latter will have the
EF_NUMPAD_KEY flag set. This is needed to rewrite number pad events
to number key events without affecting editing key events.

BUG=354034
TEST=events_unittests EventsXTest.NumpadKeyEvents
R=sadrul@chromium.org

Review URL: https://codereview.chromium.org/239313004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264257 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed