Improve comments for FORM_OnKeyDown() and Form_OnKeyUp(). Explain where the virtual key definitions are located. Remove the word "Key" from the FORM_OnChar() description to make it more obviously different from the other two functions. Change-Id: I921046c6a47e263b30bd41d1e6e333a7f3f4eda9 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/83911 Auto-Submit: Tom Sepez <tsepez@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index f2402bc..8e0cc56 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h
@@ -1455,7 +1455,8 @@ * hHandle - Handle to the form fill module, aseturned by * FPDFDOC_InitFormFillEnvironment(). * page - Handle to the page, as returned by FPDF_LoadPage(). - * nKeyCode - Indicates whether various virtual keys are down. + * nKeyCode - The virtual-key code of the given key (see + * fpdf_fwlevent.h for virtual key codes). * modifier - Contains the scan code, key-transition code, * previous key state, and context code. * Return Value: @@ -1473,7 +1474,8 @@ * hHandle - Handle to the form fill module, as returned by * FPDFDOC_InitFormFillEnvironment(). * page - Handle to the page, as returned by FPDF_LoadPage(). - * nKeyCode - The virtual-key code of the given key. + * nKeyCode - The virtual-key code of the given key (see + * fpdf_fwlevent.h for virtual key codes). * modifier - Contains the scan code, key-transition code, * previous key state, and context code. * Return Value: @@ -1492,7 +1494,7 @@ * hHandle - Handle to the form fill module, as returned by * FPDFDOC_InitFormFillEnvironment(). * page - Handle to the page, as returned by FPDF_LoadPage(). - * nChar - The character code value of the key. + * nChar - The character code value itself. * modifier - Contains the scan code, key-transition code, * previous key state, and context code. * Return Value: