mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
ObscureCursor (bug #19593; r=sfraser)
This commit is contained in:
parent
e2104bde87
commit
79dac66830
@ -756,6 +756,16 @@ void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent, EventRecord& a
|
||||
aKeyEvent.keyCode = ConvertMacToRaptorKeyCode(aOSEvent.message, aOSEvent.modifiers);
|
||||
aKeyEvent.charCode = 0;
|
||||
}
|
||||
|
||||
//
|
||||
// obscure cursor if appropriate
|
||||
//
|
||||
if ( message == NS_KEY_PRESS
|
||||
&& !aKeyEvent.isMeta
|
||||
&& aKeyEvent.keyCode != NS_VK_PAGE_UP && aKeyEvent.keyCode != NS_VK_PAGE_DOWN
|
||||
// also consider: function keys and sole modifier keys
|
||||
)
|
||||
::ObscureCursor();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user