Binding left-click drag to rectangle selection

I want to modify the shortcut keys in Unreal Engine 5.4, changing the default action of left-click dragging from moving the view to box selection. However, I couldn’t find these commands in the shortcut key settings, so I’m thinking of writing a plugin to change the key bindings. But I haven’t found any relevant tutorials. Can this be done through scripting? Where should I start learning?