mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Update documentation
This commit is contained in:
parent
a1cc977872
commit
8789b1b69b
@ -60,8 +60,8 @@ if (!hasFieldKey) {
|
||||
/**
|
||||
* Returns key name from event.
|
||||
*
|
||||
* @param {KeyboardEvent} event - keyboard event
|
||||
* @return {string} key name
|
||||
* @param {KeyboardEvent} event - Keyboard event.
|
||||
* @return {string} Key name.
|
||||
*/
|
||||
export function getKeyName(event) {
|
||||
return KeyNames[event.keyCode] || event.key;
|
||||
@ -70,8 +70,8 @@ export function getKeyName(event) {
|
||||
/**
|
||||
* Returns _true_ if key is used for navigation.
|
||||
*
|
||||
* @param {string} key - key name
|
||||
* @return {boolean} _true_ if key is used for navigation
|
||||
* @param {string} key - Key name.
|
||||
* @return {boolean} _true_ if key is used for navigation.
|
||||
*/
|
||||
export function isNavigationKey(key) {
|
||||
return NavigationKeys.indexOf(key) != -1;
|
||||
|
Loading…
Reference in New Issue
Block a user