keyboard.d.ts 852 B

12345678910111213141516
  1. import { GridOptionsWrapper } from '../gridOptionsWrapper';
  2. import { RowNode } from '../entities/rowNode';
  3. import { Column } from '../entities/column';
  4. export declare function isKeyPressed(event: KeyboardEvent, keyToCheck: number): boolean;
  5. export declare function isCharacterKey(event: KeyboardEvent): boolean;
  6. export declare function isEventFromPrintableCharacter(event: KeyboardEvent): boolean;
  7. /**
  8. * Allows user to tell the grid to skip specific keyboard events
  9. * @param {GridOptionsWrapper} gridOptionsWrapper
  10. * @param {KeyboardEvent} keyboardEvent
  11. * @param {RowNode} rowNode
  12. * @param {Column} column
  13. * @param {boolean} editing
  14. * @returns {boolean}
  15. */
  16. export declare function isUserSuppressingKeyboardEvent(gridOptionsWrapper: GridOptionsWrapper, keyboardEvent: KeyboardEvent, rowNode: RowNode, column: Column, editing: boolean): boolean;