Unable to use option shortcut/key comb when using IM
I found an issue that when I have the IM on, option key will trigger entering special characters so that I'm not able to use my other key combs and shortcuts that start with an option key. For example, I have a shortcut option + Q in vscode to wrap texts, but I must turn the IM into silent mode to use it. Is this by design?
https://user-images.githubusercontent.com/33796896/192077208-3f2cd63d-cef6-4545-aea9-ee656ecb2c3f.mp4
Is this by design?
No, it's a bug.
Keep an eye on those code: from https://github.com/dongyuwei/hallelujahIM/blob/master/src/InputController.mm#L46 to https://github.com/dongyuwei/hallelujahIM/blob/master/src/InputController.mm#L55
But I tested vscode 1.70.2 on Mac OS 12.3 without problem when use option + q to wrap text.
Version: 1.70.2
Commit: e4503b30fc78200f846c62cf8091b76ff5547662
Date: 2022-08-16T05:36:37.829Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Darwin x64 21.4.0
My vscode:
Version: 1.71.2
Commit: 74b1f979648cc44d385a2286793c226e611f59e7
Date: 2022-09-14T21:07:15.900Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
mcos: 12.6 (21G1115)
My understanding is that this should work (by design) in other apps but is not supposed to work in vs code right? I just realized it is also happening in Chrome browser and left option key will trigger those special characters.
It should work in all Apps, including vs code.
Yesterday I pushed some code trying to fix this bug, no release yet.