mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-01 10:49:25 +00:00
Remove Windows Metro/WinRT code.
This commit is contained in:
@@ -142,6 +142,7 @@ static_assert(sizeof(kVirtualKeyName) / sizeof(const char*) == 0x100,
|
||||
// Unique id counter associated with a keydown / keypress events. Used in
|
||||
// identifing keypress events for removal from async event dispatch queue
|
||||
// in metrofx after preventDefault is called on keydown events.
|
||||
// XXX: Do we still need this?
|
||||
static uint32_t sUniqueKeyEventId = 0;
|
||||
|
||||
struct DeadKeyEntry
|
||||
@@ -296,11 +297,6 @@ ModifierKeyState::InitMouseEvent(WidgetInputEvent& aMouseEvent) const
|
||||
aMouseEvent.mClass == eSimpleGestureEventClass,
|
||||
"called with non-mouse event");
|
||||
|
||||
if (XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Metro) {
|
||||
// Buttons for immersive mode are handled in MetroInput.
|
||||
return;
|
||||
}
|
||||
|
||||
WidgetMouseEventBase& mouseEvent = *aMouseEvent.AsMouseEventBase();
|
||||
mouseEvent.buttons = 0;
|
||||
if (::GetKeyState(VK_LBUTTON) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user