Closed
Bug 1500712
Opened 7 years ago
Closed 7 years ago
https://developer.mozilla.org/en-US/docs/Web/API/Keyboard [Uncaught SyntaxError: missing ) after argument list] on code example (line 7)
Categories
(Developer Documentation Graveyard :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adamkochanskicode, Unassigned)
References
()
Details
:: Developer Documentation Request
Request Type: Correction
Gecko Version: unspecified
Technical Contact:
:: Details
https://developer.mozilla.org/en-US/docs/Web/API/Keyboard [Uncaught SyntaxError: missing ) after argument list] on example code section (line 7)
Proper code below:
if (navigator.keyboard) {
var keyboard = navigator.keyboard;
keyboard.getLayoutMap()
.then(keyboardLayoutMap => {
var upKey = keyboardLayoutMap.get('KeyW');
window.alert('Press ' + upKey + ' to move up.');
})
} else {
// Do something else.
}
Comment 1•7 years ago
|
||
Thanks for filing!
I've updated the example so it doesn't throw an error, but navigator.keyboard doesn't seem to be defined in Chrome 71, despite what the compat table says.
Still, I think we should mark this bug as fixed, since the error it flags should be fixed now.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•