Different hotkey behavior when edge or face selected possible?

Hi,

I’m new to Blender but have used a lot of other 3D modeling packages before. Setting up hotkeys, I’m wondering if there is a way to have the same hotkey do different things when different component types are selected in edit mode.

Specifically I’m looking to have double clicking an edge select a loop (mesh.loop_select) and double clicking a face select all contiguous faces (mesh.select_linked). Is this possible in Blender?

Thanks

A plugin could do it. But for the native keymap handling these are not different modes, so not without one.