+the list, which I dropped accidentally.
On the Mac (I don't know about other platforms) you need to check the key state *on the selection event*, not the immediate key state, for what you are trying to do to work correctly.
-Stuart
The context is like this. The user selects a menu to do some action. But I'd like to check the state of the assisted keys so that I can modify the default behavior of the action if a certain key is pressed.
Stephen ChengFrom: Stuart MorganDate: 2013-12-01 11:28To: flashpeakSubject: Re: [chromium-dev] Checking key state under Linux and MacWhat's the context for this? Checking immediate key state is almost never what you want on Mac; instead you generally want to get the state of the event currently being processed, which gets complicated outside of the browser process.
-Stuart
On Dec 1, 2013 8:48 AM, "Stephen Cheng" <flas...@gmail.com> wrote:
Is there any platform agnostic api to check key state? I found base::win::IsShiftPressed(). What are the equivalent functions under Mac and Linux?Thanks for help!
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev