Is there any way to achieve this?
I have a character, say "/" and I want to get the keyboard combination for this.
For the German layout, "/" would be Shift+7.
If I understand you correctly, you want to know what key combination is necessary to generate a specific character. The closest I have come to this is this bit of code: KeyboardLayout. It uses the keyboard layouts on Wikipedia to build a map of key codes for each language.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With