mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-06-16 20:07:33 +02:00
chore(deps): update keyboard dependency and refactor keyboard handling
This commit is contained in:
commit
aa928f7094
5 changed files with 331 additions and 501 deletions
27
types/keyboard.d.ts
vendored
Normal file
27
types/keyboard.d.ts
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
import type { Key as WaraduKey, useKeyboard } from '@waradu/keyboard';
|
||||
|
||||
declare module '#app' {
|
||||
interface NuxtApp {
|
||||
$keyboard: {
|
||||
listen: ReturnType<typeof useKeyboard>['listen'];
|
||||
init: ReturnType<typeof useKeyboard>['init'];
|
||||
Key: typeof WaraduKey;
|
||||
currentOS: string;
|
||||
clearAll: () => void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
$keyboard: {
|
||||
listen: ReturnType<typeof useKeyboard>['listen'];
|
||||
init: ReturnType<typeof useKeyboard>['init'];
|
||||
Key: typeof WaraduKey;
|
||||
currentOS: string;
|
||||
clearAll: () => void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
Loading…
Add table
Add a link
Reference in a new issue