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:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user