Keyboard service
import { KeyboardService } from '@trademe/tangram';
Keyboard service is an event handler for keyboard events.
Methods
isKeyPressed ($event: KeyboardEvent, key: Keys): booleanReturns a boolean every time the specified key has been pressed.
fromEvent (key?: Keys): ObservableEmits an observable when the specified key has been pressed.