We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6593260 commit db22a70Copy full SHA for db22a70
src/tapTarget.ts
@@ -109,7 +109,7 @@ export class TapTarget extends Component<TapTargetOptions> implements Openable {
109
_handleThrottledResize: () => void = Utils.throttle(function(){ this._handleResize(); }, 200).bind(this);
110
111
_handleKeyboardInteraction = (e: KeyboardEvent) => {
112
- if (e.keyCode === 13) {
+ if (Utils.keys.ENTER.includes(e.key)) {
113
this._handleTargetToggle();
114
}
115
0 commit comments