Switch keyboard to keyboard shortcut

Is there any way to achieve this?

I have a character, say "/", and I want to get a key combination for this.

For a German layout, "/" will be Shift + 7 .

+6
source share
1 answer

If I understand you correctly, you want to know which key combination is necessary to generate a specific character. Closest to this I came this bit of code: KeyboardLayout . It uses keyboard layouts on Wikipedia to build a map of key codes for each language.

+1
source

Source: https://habr.com/ru/post/970931/


All Articles