Added ?noextkey=1 URL option.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-28 12:34:55 -08:00
parent 22bf06837d
commit c92c977775
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
if (!event) { event = window.event; } if (!event) { event = window.event; }
var extendedKey = false; // Test feature, add ?extkeys=1 to url to use. var extendedKey = false; // Test feature, add ?extkeys=1 to url to use.
if ((typeof event.code == 'string') && (event.code.startsWith('Arrow') || (extendedKeyTable.indexOf(event.code) >= 0))) { extendedKey = true; } if ((urlargs.noextkeys != 1) && (typeof event.code == 'string') && (event.code.startsWith('Arrow') || (extendedKeyTable.indexOf(event.code) >= 0))) { extendedKey = true; }
if ((extendedKey == false) && event.code && (event.code.startsWith('NumPad') == false) && (obj.localKeyMap == false)) { if ((extendedKey == false) && event.code && (event.code.startsWith('NumPad') == false) && (obj.localKeyMap == false)) {
// Convert "event.code" into a scancode. This works the same regardless of the keyboard language. // Convert "event.code" into a scancode. This works the same regardless of the keyboard language.