Julow / Unexpected-Keyboard

A lightweight virtual keyboard for developers.
GNU General Public License v3.0
1.47k stars 188 forks source link

Add keyboard combinations like Ctrl+A/Z/X/C/V for russian layout #438

Open vort3 opened 1 year ago

vort3 commented 1 year ago

On any modern PC with Russian keyboard layout, letter «я» is the same key as the letter «z» in English. The list goes like this:

Is it possible to make all Ctrl key combinations work with keys in Russian layout as if the layout was English, so pressing Ctrl + Ч would be the cut hotkey, same as Ctrl + X in English? Currently I have to switch to English layout every time I write something in Russian and want to copy/paste/cut/undo/select all, which is very annoying.

Maybe if it's an easy change to make myself I can help with that, but please point me in the right direction.

Julow commented 1 year ago

This can be implemented by adding more cases to this function: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/juloo.keyboard2/KeyModifier.java#L387

A related issue is open: https://github.com/Julow/Unexpected-Keyboard/issues/109

Julow commented 3 months ago

The solution to this issue is to add a <modmap> in all the layouts that need it, as discussed in https://github.com/Julow/Unexpected-Keyboard/issues/721. Could you provide the mappings ?

Julow commented 3 months ago

Here's how it's done for Serbian: https://github.com/Julow/Unexpected-Keyboard/pull/727

Julow commented 1 month ago

It's now possible to implement this without having latin letters appear on the layout (700ec23). Here's how it's implemented in the Serbian layout: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/layouts/cyrl_lynyertz_sr.xml#L11-L37 @bokidori Do you know the mappings for the Russian layout ?