mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 20:39:13 +02:00
o resolve #7277:
* fixed tab order on options/dirs./misc. * tfpmemo sends esc now properly git-svn-id: trunk@8821 -
This commit is contained in:
parent
7229dcfdcb
commit
4235e9a00a
@ -698,7 +698,8 @@ var tab:Ptab;
|
|||||||
IL:array[0..11] of PEditorInputLine;
|
IL:array[0..11] of PEditorInputLine;
|
||||||
misc_items:PTabItem;
|
misc_items:PTabItem;
|
||||||
misc_tabfocus:Pview;
|
misc_tabfocus:Pview;
|
||||||
|
newmisc_items,
|
||||||
|
temp : PTabItem;
|
||||||
const LW=25;
|
const LW=25;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -777,6 +778,19 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{ revert items for correct tab order }
|
||||||
|
newmisc_items:=nil;
|
||||||
|
while assigned(misc_items) do
|
||||||
|
begin
|
||||||
|
{ get element }
|
||||||
|
temp:=misc_items;
|
||||||
|
misc_items:=temp^.next;
|
||||||
|
{ put element }
|
||||||
|
temp^.next:=newmisc_items;
|
||||||
|
newmisc_items:=temp;
|
||||||
|
end;
|
||||||
|
misc_items:=newmisc_items;
|
||||||
|
|
||||||
{Create some tabs in the window.}
|
{Create some tabs in the window.}
|
||||||
tabR.assign(1,1,d^.size.x-2,d^.size.y-1);
|
tabR.assign(1,1,d^.size.x-2,d^.size.y-1);
|
||||||
new(tab,init(tabR,
|
new(tab,init(tabR,
|
||||||
|
@ -4500,7 +4500,11 @@ begin
|
|||||||
DontClear:=false;
|
DontClear:=false;
|
||||||
case Event.KeyCode of
|
case Event.KeyCode of
|
||||||
kbEsc:
|
kbEsc:
|
||||||
Message(Owner,evCommand,cmCancel,nil);
|
begin
|
||||||
|
Event.What:=evCommand;
|
||||||
|
Event.Command:=cmCancel;
|
||||||
|
PutEvent(Event);
|
||||||
|
end;
|
||||||
else DontClear:=true;
|
else DontClear:=true;
|
||||||
end;
|
end;
|
||||||
if not DontClear then ClearEvent(Event);
|
if not DontClear then ClearEvent(Event);
|
||||||
|
Loading…
Reference in New Issue
Block a user