Skip to content

Commit 3a0419b

Browse files
refact: Migrate $helper.keyboard to TypeScript (#7984)
1 parent 4480d36 commit 3a0419b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

33
return [
4-
'source' => 'panel/src/helpers/keyboard.js'
4+
'source' => 'panel/src/helpers/keyboard.ts'
55
];
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**
2-
* Returns name of meta key for current OS
3-
* @returns {string} `cmd` or `ctrl`
2+
* Returns name of meta key for current OS (`cmd` or `ctrl`)
43
*/
5-
export function metaKey() {
4+
export function metaKey(): string {
65
return window.navigator.userAgent.indexOf("Mac") > -1 ? "cmd" : "ctrl";
76
}
87

0 commit comments

Comments
 (0)