packageDocumentation module public export enum FunctionKey { F1 = "F1" , F2 = "F2" , F3 = "F3" , F4 = "F4" , F5 = "F5" , F6 = "F6" , F7 = "F7" , F8 = "F8" , F9 = "F9" , F10 = "F10" , F11 = "F11" , F12 = "F12" } public export enum SpecialKey { Home = "Home" , End = "End" , PageUp = "PageUp" , PageDown = "PageDown" , Escape = "Escape" , Delete = "Delete" , Insert = "Insert" , Tab = "Tab" , ArrowLeft = "ArrowLeft" , ArrowRight = "ArrowRight" , ArrowUp = "ArrowUp" , ArrowDown = "ArrowDown" , Enter = "Enter" , Return = "Enter" , Space = " " , Backspace = "Backspace" , Clear = "Clear" , Divide = "Divide" , Multiply = "Multiply" , Subtract = "Subtract" , Add = "Add" , Decimal = "Decimal" } public export function isArrowKey ( key ) { return ( key === SpecialKey . ArrowLeft || key === SpecialKey . ArrowRight || key === SpecialKey . ArrowUp || key === SpecialKey . ArrowDown ) ; }