mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-13 22:54:20 +08:00
Address layout key handling. Fixes #842
This commit is contained in:
parent
fa61a360dc
commit
eb166e69e3
@ -99,15 +99,15 @@ class PhysicalKeyboard {
|
||||
}
|
||||
|
||||
/**
|
||||
* If button is not uppercase, casting to lowercase
|
||||
* Casting key to lowercase
|
||||
*/
|
||||
if (
|
||||
output !== output.toUpperCase() ||
|
||||
(output && output !== output.toUpperCase()) ||
|
||||
(event.code[0] === "F" &&
|
||||
Number.isInteger(Number(event.code[1])) &&
|
||||
event.code.length <= 3)
|
||||
) {
|
||||
output = output.toLowerCase();
|
||||
output = output ? output.toLowerCase() : output;
|
||||
}
|
||||
|
||||
return output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user