本页还没有译文
本页 4 段还没译成简体中文,下面显示的是英文原文。PUNCTUATION_CODE_MAP
还没翻译译自英文(tanstack.com)本页 4 段都还没译
const PUNCTUATION_CODE_MAP: Record<string, string>;Defined in: constants.ts:277
Maps KeyboardEvent.code values for punctuation keys to their canonical characters.
On macOS, holding the Option (Alt) key transforms punctuation keys into special characters
(e.g., Option+Minus → en-dash '–'), causing event.key to differ from the expected character.
However, event.code still reports the physical key (e.g., 'Minus'). This map enables
falling back to event.code for punctuation keys, similar to the existing Key*/Digit*
fallbacks for letters and digits.
AI 翻译查看英文原文