Skip to content

Commit

Permalink
Backends: OSX: Fixed typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jan 10, 2022
1 parent ef681e7 commit 9ce0f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/imgui_impl_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view)
{
io.AddKeyEvent(key, (imgui_flags & imgui_mask) != 0);
}
io.SetKeyEventNativeData(key, keycode, -1); // To support legacy indexing (<1.87 user code)
io.SetKeyEventNativeData(key, key_code, -1); // To support legacy indexing (<1.87 user code)
}

return io.WantCaptureKeyboard;
Expand Down

0 comments on commit 9ce0f35

Please sign in to comment.