Skip to content

Commit

Permalink
[js] Skip initKeyEvent usage when Gecko is verion 93 or later.
Browse files Browse the repository at this point in the history
Fixes #9853
  • Loading branch information
AutomatedTester committed Sep 21, 2021
1 parent d1fd313 commit defe1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/atoms/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ bot.events.KeyboardEventFactory_.prototype.create = function (target, opt_args)
var doc = goog.dom.getOwnerDocument(target);
var event;

if (goog.userAgent.GECKO) {
if (goog.userAgent.GECKO && !goog.isEngineVersion(93)) {
var view = goog.dom.getWindow(doc);
var keyCode = args.charCode ? 0 : args.keyCode;
event = doc.createEvent('KeyboardEvent');
Expand Down

0 comments on commit defe1e3

Please sign in to comment.