GetTerminus/ngx-tools

CreateKeyboardEvent: Define keyCode

Closed this issue · 0 comments

Currently we only define the key, code and target. We should also define keyCode. (for instance, CDK is looking for keyCode in some instances).

https://github.com/GetTerminus/ngx-tools/blob/release/ngx-tools/testing/src/utilities/events/create-keyboard-event.ts#L30-L32

  • Add keyCode definition
  • Update tests