Fix on-screen keyboard: ignore Ctrl/Alt modifier keys

When pressing Ctrl or Alt on the virtual keyboard, the literal text
"Control" or "Alt" was being inserted into text fields. Now these
modifier keys are properly ignored since they don't function as
standalone keys in input fields.
This commit is contained in:
Claude
2025-12-27 03:24:43 +00:00
parent 966709547f
commit e04fc42a85
+3
View File
@@ -5473,6 +5473,9 @@ function createWindow(){
}
})();
`).catch(()=>{});
}else if(key==='Control'||key==='Alt'){
// Ignore modifier keys - they don't work as standalone keys
return;
}else{
view.webContents.executeJavaScript(`
(function(){