Refactor `KeybindingKeystroke` (#37065)

This pull request refactors the `KeybindingKeystroke` struct and related
code to improve platform abstraction. The changes centralize
platform-specific logic within `KeybindingKeystroke` and update its
usage throughout the codebase, making the API more consistent and less
error-prone.



Release Notes:

- N/A
ff03dda90a张小白 committed on 8/28/2025, 8:40:43 AM· committed by GitHubparent73b38c8
11 files changedLine totals unavailable