From f7630df89ccb5456f6e2ce3ca3f98e94fab97f88 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 9 Oct 2025 02:05:25 +0500 Subject: [PATCH] * del: DeleteSelection3 as most expected deletion bind --- docs/changelog-custom.txt | 1 + radiant/mainframe.cpp | 2 +- radiant/select.cpp | 1 + radiant/xywindow.cpp | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog-custom.txt b/docs/changelog-custom.txt index 1390ec34..8ed2ccd8 100644 --- a/docs/changelog-custom.txt +++ b/docs/changelog-custom.txt @@ -332,6 +332,7 @@ binds... * add alt + m1 selection style to transform manipulator for scaling in 3D * ctrl + shift + p: Shortcuts dialog (keyboard commands palette) * m2 in texBro: context menu + * del: DeleteSelection3 as most expected deletion bind menus... * smartified content basically diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 39f721e6..9ee29b5f 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -1303,7 +1303,7 @@ void Misc_registerShortcuts(){ command_connect_accelerator( "Redo2" ); command_connect_accelerator( "UnSelectSelection2" ); command_connect_accelerator( "DeleteSelection2" ); - + command_connect_accelerator( "DeleteSelection3" ); } diff --git a/radiant/select.cpp b/radiant/select.cpp index 46dcd7bf..27f518b2 100644 --- a/radiant/select.cpp +++ b/radiant/select.cpp @@ -1863,6 +1863,7 @@ void Select_registerCommands(){ GlobalCommands_insert( "MoveToCamera", makeCallbackF( MoveToCamera ), QKeySequence( "Ctrl+Shift+V" ) ); GlobalCommands_insert( "CloneSelection", makeCallbackF( Selection_Clone ), QKeySequence( "Space" ) ); GlobalCommands_insert( "CloneSelectionAndMakeUnique", makeCallbackF( Selection_Clone_MakeUnique ), QKeySequence( "Shift+Space" ) ); + GlobalCommands_insert( "DeleteSelection3", makeCallbackF( deleteSelection ), QKeySequence( "Delete" ) ); GlobalCommands_insert( "DeleteSelection2", makeCallbackF( deleteSelection ), QKeySequence( "Backspace" ) ); GlobalCommands_insert( "DeleteSelection", makeCallbackF( deleteSelection ), QKeySequence( "Z" ) ); GlobalCommands_insert( "RepeatTransforms", makeCallbackF( +[](){ GlobalSelectionSystem().repeatTransforms(); } ), QKeySequence( "Ctrl+R" ) ); diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index e50606bb..7e909513 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -2279,7 +2279,7 @@ void XYWindow_Construct(){ GlobalToggles_insert( "ToggleSideView", ToggleShown::ToggleCaller( g_yz_side_shown ), ToggleItem::AddCallbackCaller( g_yz_side_shown.m_item ) ); GlobalToggles_insert( "ToggleFrontView", ToggleShown::ToggleCaller( g_xz_front_shown ), ToggleItem::AddCallbackCaller( g_xz_front_shown.m_item ) ); GlobalCommands_insert( "NextView", makeCallbackF( XY_NextView ), QKeySequence( "Ctrl+Tab" ) ); - GlobalCommands_insert( "ZoomIn", makeCallbackF( XY_ZoomIn ), QKeySequence( "Delete" ) ); + GlobalCommands_insert( "ZoomIn", makeCallbackF( XY_ZoomIn ) ); GlobalCommands_insert( "ZoomOut", makeCallbackF( XY_ZoomOut ), QKeySequence( "Insert" ) ); GlobalCommands_insert( "ViewTop", makeCallbackF( XY_Top ), QKeySequence( +Qt::Key_7 + Qt::KeypadModifier ) ); GlobalCommands_insert( "ViewFront", makeCallbackF( XY_Front ), QKeySequence( +Qt::Key_1 + Qt::KeypadModifier ) );