checkKeyCodes() — vue Function Reference
Architecture documentation for the checkKeyCodes() function in check-keycodes.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 9b2cf4fe_6974_1dd5_01c5_358b07949090["checkKeyCodes()"] f1e55b96_56c4_7977_3bbb_c25258167db2["isKeyNotMatch()"] 9b2cf4fe_6974_1dd5_01c5_358b07949090 -->|calls| f1e55b96_56c4_7977_3bbb_c25258167db2 e78b8b23_1803_b152_f10f_06b6c4015dc9["hyphenate()"] 9b2cf4fe_6974_1dd5_01c5_358b07949090 -->|calls| e78b8b23_1803_b152_f10f_06b6c4015dc9 style 9b2cf4fe_6974_1dd5_01c5_358b07949090 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/render-helpers/check-keycodes.ts lines 17–33
export function checkKeyCodes(
eventKeyCode: number,
key: string,
builtInKeyCode?: number | Array<number>,
eventKeyName?: string,
builtInKeyName?: string | Array<string>
): boolean | null | undefined {
const mappedKeyCode = config.keyCodes[key] || builtInKeyCode
if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
return isKeyNotMatch(builtInKeyName, eventKeyName)
} else if (mappedKeyCode) {
return isKeyNotMatch(mappedKeyCode, eventKeyCode)
} else if (eventKeyName) {
return hyphenate(eventKeyName) !== key
}
return eventKeyCode === undefined
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkKeyCodes() do?
checkKeyCodes() is a function in the vue codebase.
What does checkKeyCodes() call?
checkKeyCodes() calls 2 function(s): hyphenate, isKeyNotMatch.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free