mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Append Firefox key codes
Firefox's key codes for `;`, `-`, `=` differ from Chrome's. Fixes #22.
This commit is contained in:
@@ -49,6 +49,9 @@ var keyCodeAliases = {
|
|||||||
220: '\\',
|
220: '\\',
|
||||||
221: ']',
|
221: ']',
|
||||||
222: '\'',
|
222: '\'',
|
||||||
|
59: ';',
|
||||||
|
173: '-',
|
||||||
|
61: '+',
|
||||||
}
|
}
|
||||||
|
|
||||||
var whiteList = ['Backspace', 'Delete', 'Tab', 'Escape', 'Enter', 'Home', 'End',
|
var whiteList = ['Backspace', 'Delete', 'Tab', 'Escape', 'Enter', 'Home', 'End',
|
||||||
@@ -187,7 +190,6 @@ function initShortcutInput(inputId) {
|
|||||||
document.getElementById(inputId).addEventListener('keydown', recordKeyPress);
|
document.getElementById(inputId).addEventListener('keydown', recordKeyPress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
restore_options();
|
restore_options();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user