We used to be able to have the codex scanner equipped and use quick melee, then go back to scanner mode with no harassment. At some point (i believe it was when the new holster mechanics was introduced), if we use melee while codex scanner is equipped, pressing RMB (or LMB) will immediately switch to primary weapon, forcing a new gear wheel opening to equip the scanner again.
This is very annoying, specially when looking for Simaris targets. Using melee to get rid of a random mob will force a gear wheel opening. I have a keybind for that, but it still sort of breaks the game. More than once, I almost killed the Simaris target, while quick attacking another mob with melee, pointing back to scan and get the target shot by accident.
I'm pretty sure this change was not intended (and if it was, it was a bad one). Please fix it.