Skip to content

Commit db22a70

Browse files
committed
refactor(featureDiscovery) replace keyCode with key
1 parent 6593260 commit db22a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tapTarget.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class TapTarget extends Component<TapTargetOptions> implements Openable {
109109
_handleThrottledResize: () => void = Utils.throttle(function(){ this._handleResize(); }, 200).bind(this);
110110

111111
_handleKeyboardInteraction = (e: KeyboardEvent) => {
112-
if (e.keyCode === 13) {
112+
if (Utils.keys.ENTER.includes(e.key)) {
113113
this._handleTargetToggle();
114114
}
115115
}

0 commit comments

Comments
 (0)