mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 14:08:14 +02:00
IDE: fix the proper loading keyschema flags, issue #39817
This commit is contained in:
parent
f139def054
commit
b1822df52c
@ -288,7 +288,7 @@ begin
|
||||
exp.DefineCommandCategories; // default Relations
|
||||
nm := xml.GetValue('Name/Value','');
|
||||
if nm = '' then nm := ExtractFileName(xml.FileName);
|
||||
exp.LoadFromXMLConfig(xml, 'KeyMapping/', true);
|
||||
exp.LoadFromXMLConfig(xml, 'KeyMapping/', false);
|
||||
for i:=0 to exp.RelationCount-1 do begin
|
||||
src := exp.Relations[i];
|
||||
dst := FEditingKeyMap.FindByCommand(src.Command);
|
||||
|
@ -4367,7 +4367,7 @@ begin
|
||||
if nm = '' then nm := ExtractFileName(fn[i]);
|
||||
if (dst.IndexOf(nm)<0) then begin
|
||||
exp.DefineCommandCategories; // default Relations
|
||||
exp.LoadFromXMLConfig(xml, 'KeyMapping/', true);
|
||||
exp.LoadFromXMLConfig(xml, 'KeyMapping/', false);
|
||||
dst.AddObject(nm, exp);
|
||||
end;
|
||||
except
|
||||
|
Loading…
Reference in New Issue
Block a user