mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-30 22:05:46 +08:00
Backends: OSX: remove duplicate variable. (#8565)
This commit is contained in:
@@ -788,8 +788,6 @@ static bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view)
|
|||||||
default:
|
default:
|
||||||
return io.WantCaptureKeyboard;
|
return io.WantCaptureKeyboard;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSEventModifierFlags modifier_flags = [event modifierFlags];
|
|
||||||
io.AddKeyEvent(key, (modifier_flags & mask) != 0);
|
io.AddKeyEvent(key, (modifier_flags & mask) != 0);
|
||||||
io.SetKeyEventNativeData(key, key_code, -1); // To support legacy indexing (<1.87 user code)
|
io.SetKeyEventNativeData(key, key_code, -1); // To support legacy indexing (<1.87 user code)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user