Skip to content

Commit

Permalink
keyDown eh
Browse files Browse the repository at this point in the history
  • Loading branch information
ampersand38 committed Feb 17, 2023
1 parent 38533f4 commit a37a33d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions addons/editor/functions/fnc_handleKeyDown.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

params ["_display", "_keyCode"];

if (GVAR(moveCamToSelection) > 0 && {_keyCode in actionKeys "curatorMoveCamTo" && {count SELECTED_OBJECTS > 0}}) exitWith {
[] call FUNC(moveCamToSelection);

true
};

// One frame later so RscDisplayCurator_sections is updated
[{
params ["_display", "_keyCode", "_oldMode"];
Expand Down
6 changes: 0 additions & 6 deletions addons/editor/initKeybinds.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@
};
}, {}, [DIK_F, [false, true, true]]] call CBA_fnc_addKeybind; // Default: CTRL + ALT + F

[ELSTRING(main,DisplayName), QGVAR(curatorMoveCamTo), ["str_usract_curator_move_cam", "str_controls_tooltips_curator_move_cam"], {
if (!isNull curatorCamera) then {
[] call FUNC(handleCuratorMoveCamTo)
};
}, {}, [DIK_F, [false, false, false]]] call CBA_fnc_addKeybind; // Default: F

[ELSTRING(main,DisplayName), QGVAR(orientTerrainNormal), ["str_3den_display3den_entitymenu_setatl_text", LSTRING(OrientTerrainNormal_Description)], {
if (!isNull curatorCamera && {!GETMVAR(RscDisplayCurator_search,false)}) then {
{
Expand Down

0 comments on commit a37a33d

Please sign in to comment.