mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
When dragging a table into a query editor while Shift is pressed, include its database name. Fixes issue #1749 . Fixes issue #1661.
This commit is contained in:
@ -247,6 +247,7 @@ type
|
||||
function CheckForSecondInstance: Boolean;
|
||||
function GetParentFormOrFrame(Comp: TWinControl): TWinControl;
|
||||
function GetIndexIcon(IndexType: String): Integer;
|
||||
function KeyPressed(Code: Integer): Boolean;
|
||||
|
||||
var
|
||||
MainReg: TRegistry;
|
||||
@ -3404,6 +3405,16 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
function KeyPressed(Code: Integer): Boolean;
|
||||
var
|
||||
State: TKeyboardState;
|
||||
begin
|
||||
// Checks whether a key is pressed, defined by virtual key code
|
||||
GetKeyboardState(State);
|
||||
Result := (State[Code] and 128) <> 0;
|
||||
end;
|
||||
|
||||
|
||||
end.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user