2
0
Эх сурвалжийг харах

disable quick edit mode in windows IDE

git-svn-id: trunk@6049 -
pierre 18 жил өмнө
parent
commit
e79ab4462b
1 өөрчлөгдсөн 11 нэмэгдсэн , 1 устгасан
  1. 11 1
      ide/fpusrscr.pas

+ 11 - 1
ide/fpusrscr.pas

@@ -980,6 +980,11 @@ end;
 
 
 {$ifdef Windows}
 {$ifdef Windows}
 
 
+{ Seems to be missing in windows unit PM }
+const
+  ENABLE_INSERT_MODE = $20;
+  ENABLE_QUICK_EDIT_MODE = $40;
+
 procedure UpdateFileHandles;
 procedure UpdateFileHandles;
 begin
 begin
   {StdInputHandle:=longint(GetStdHandle(STD_INPUT_HANDLE));}
   {StdInputHandle:=longint(GetStdHandle(STD_INPUT_HANDLE));}
@@ -1302,7 +1307,12 @@ begin
   { Needed to force InitSystemMsg to use the right console handle }
   { Needed to force InitSystemMsg to use the right console handle }
   DoneEvents;
   DoneEvents;
   InitEvents;
   InitEvents;
-  IdeMode:=(IdeMode or ENABLE_MOUSE_INPUT or ENABLE_WINDOW_INPUT) and not ENABLE_PROCESSED_INPUT;
+  IdeMode:=(IdeMode or ENABLE_MOUSE_INPUT or ENABLE_WINDOW_INPUT)
+           and not (ENABLE_PROCESSED_INPUT or
+                    ENABLE_LINE_INPUT or
+                    ENABLE_ECHO_INPUT or
+                    ENABLE_INSERT_MODE or
+                    ENABLE_QUICK_EDIT_MODE);
   SetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)), IdeMode);
   SetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)), IdeMode);
   WindowPos.left:=0;
   WindowPos.left:=0;
   WindowPos.right:=ConsoleScreenBufferInfo.srWindow.right
   WindowPos.right:=ConsoleScreenBufferInfo.srWindow.right