mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Prefer KeyPressed() over GetKeyState(), which may help to fix the backspace crashes on Wine: https://www.heidisql.com/forum.php?t=34351
This commit is contained in:
@@ -12826,7 +12826,7 @@ var
|
||||
TextMatches: Boolean;
|
||||
begin
|
||||
// Support for Ctrl+Backspace shortcut in edit + combobox controls
|
||||
if (Msg.CharCode = VK_BACK) and (GetKeyState(VK_CONTROL) < 0) then begin
|
||||
if (Msg.CharCode = VK_BACK) and KeyPressed(VK_CONTROL) then begin
|
||||
SendingControl := Screen.ActiveControl;
|
||||
rx := TRegExpr.Create;
|
||||
rx.Expression := '\b\W*\w+\W*$';
|
||||
|
||||
Reference in New Issue
Block a user