pxt-core 12.0.1 → 12.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/pxt.js +5 -0
- package/built/pxtsim.js +5 -0
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtsim.js +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/package.json +1 -1
- package/theme/common.less +2 -1
- package/theme/sidedoc.less +0 -1
package/built/pxt.js
CHANGED
|
@@ -150307,6 +150307,7 @@ var pxsim;
|
|
|
150307
150307
|
var accessibility;
|
|
150308
150308
|
(function (accessibility) {
|
|
150309
150309
|
let liveRegion;
|
|
150310
|
+
let keydownListenerAdded = false;
|
|
150310
150311
|
function makeFocusable(elem) {
|
|
150311
150312
|
elem.setAttribute("focusable", "true");
|
|
150312
150313
|
elem.setAttribute("tabindex", "0");
|
|
@@ -150331,6 +150332,10 @@ var pxsim;
|
|
|
150331
150332
|
}
|
|
150332
150333
|
accessibility.getGlobalAction = getGlobalAction;
|
|
150333
150334
|
function postKeyboardEvent() {
|
|
150335
|
+
if (keydownListenerAdded) {
|
|
150336
|
+
return;
|
|
150337
|
+
}
|
|
150338
|
+
keydownListenerAdded = true;
|
|
150334
150339
|
document.addEventListener("keydown", (e) => {
|
|
150335
150340
|
const action = getGlobalAction(e);
|
|
150336
150341
|
if (action) {
|
package/built/pxtsim.js
CHANGED
|
@@ -4,6 +4,7 @@ var pxsim;
|
|
|
4
4
|
var accessibility;
|
|
5
5
|
(function (accessibility) {
|
|
6
6
|
let liveRegion;
|
|
7
|
+
let keydownListenerAdded = false;
|
|
7
8
|
function makeFocusable(elem) {
|
|
8
9
|
elem.setAttribute("focusable", "true");
|
|
9
10
|
elem.setAttribute("tabindex", "0");
|
|
@@ -28,6 +29,10 @@ var pxsim;
|
|
|
28
29
|
}
|
|
29
30
|
accessibility.getGlobalAction = getGlobalAction;
|
|
30
31
|
function postKeyboardEvent() {
|
|
32
|
+
if (keydownListenerAdded) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
keydownListenerAdded = true;
|
|
31
36
|
document.addEventListener("keydown", (e) => {
|
|
32
37
|
const action = getGlobalAction(e);
|
|
33
38
|
if (action) {
|