| Index: ui/views/events/event.h
|
| diff --git a/ui/views/events/event.h b/ui/views/events/event.h
|
| index af4a06a0dee450b6e83672beb03f4cf00fda3867..636d04b3ed5a43da78a12958da492eb4f7ed503d 100644
|
| --- a/ui/views/events/event.h
|
| +++ b/ui/views/events/event.h
|
| @@ -291,9 +291,7 @@ class VIEWS_EXPORT KeyEvent : public Event {
|
| // event from the host environment). This is typically only used in testing as
|
| // some metadata obtainable from the underlying native event is not present.
|
| // It's also used by input methods to fabricate keyboard events.
|
| - KeyEvent(ui::EventType type,
|
| - ui::KeyboardCode key_code,
|
| - int event_flags);
|
| + KeyEvent(ui::EventType type, ui::KeyboardCode key_code, int event_flags);
|
|
|
| ui::KeyboardCode key_code() const { return key_code_; }
|
|
|
| @@ -314,6 +312,9 @@ class VIEWS_EXPORT KeyEvent : public Event {
|
| // modifiers (except shift).
|
| uint16 GetUnmodifiedCharacter() const;
|
|
|
| + // Returns if the key is a numeric pad digit, regardless of NumLock state.
|
| + bool IsNumPadDigit() const;
|
| +
|
| private:
|
| ui::KeyboardCode key_code_;
|
|
|
|
|