mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
fix(developer): map shift key nextlayer property when importing OSK
Fixes: #14227 Test-bot: skip
This commit is contained in:
parent
58a565be21
commit
b614411045
1 changed files with 17 additions and 0 deletions
|
|
@ -319,6 +319,23 @@ function TVisualKeyboardToTouchLayoutConverter.SetupModifierKeysForImportedLayou
|
|||
|
||||
for l in p.Layers do
|
||||
begin
|
||||
// Find the Shift key and assign the next layer
|
||||
k := l.FindKeyById('K_SHIFT');
|
||||
if Assigned(k) then
|
||||
begin
|
||||
if l.id = 'default' then
|
||||
begin
|
||||
k.NextLayer := 'shift';
|
||||
end
|
||||
else
|
||||
begin
|
||||
// All layers other than default will return to default layer
|
||||
// when shift is pressed, because we do not currently map
|
||||
// shift+other mod layers with use of the Shift key in the import
|
||||
k.NextLayer := 'default';
|
||||
end;
|
||||
end;
|
||||
|
||||
// Find the Ctrl key for the layer
|
||||
k := l.FindKeyById('K_LCONTROL');
|
||||
if not Assigned(k) then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue