Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Key): add TS defs for baseWidth and keySpacing
Browse files Browse the repository at this point in the history
THoj13 committed Nov 30, 2023
1 parent 58abe7a commit 99faace
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ type KeyStyle = ButtonStyle & {
/** @deprecated */
iconH: number;
iconHeight: number;
baseWidth: number;
};

declare namespace Key {
@@ -60,6 +61,11 @@ declare namespace Key {
* If true, pressing the key will trigger the $toggleKeyboard event. If false, the key will trigger the $onSoftKey event.
*/
toggle?: boolean;

/**
* The horizontal spacing between each key in a Keyboard. This value is factored into the width of the key so that it aligns with with the borders of other keys in a Keyboard.
*/
keySpacing?: string;
}
}
declare class Key<

0 comments on commit 99faace

Please sign in to comment.