Skip to content

Commit

Permalink
Fix alt+tab causing issues with indentation insert on tab press (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Mar 18, 2021
1 parent 43970e7 commit 8e081a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/diagnostic/fnc_initExtendedDebugConsole.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ _expression ctrlCommit 0;

// Save expression when hitting enter key inside expression text field
_expression ctrlAddEventHandler ["KeyDown", {
params ["_expression", "_key", "_shift"];
params ["_expression", "_key", "_shift", "", "_alt"];

if (_key in [DIK_RETURN, DIK_NUMPADENTER] && {!_shift}) then { // shift + enter is newline
// fix for enter key not working in MP
Expand All @@ -65,7 +65,7 @@ _expression ctrlAddEventHandler ["KeyDown", {
_this call FUNC(logStatement);
};

if (_key isEqualTo DIK_TAB) then {
if (_key isEqualTo DIK_TAB && {!_alt}) then {
_expression setVariable [QGVAR(tabKey), [true, _shift]];
};

Expand Down

0 comments on commit 8e081a5

Please sign in to comment.