Windows 10 64bit
Tested: 2.7x and 2.8
I have transform.resize mapped to "S" key on "RELEASE". If I go to the mesh special menu and press "S", the menu consumes the input and disappears. But, when I release the "S" key, blender goes into the transform-resize mode.
I think, when any menu is actively listening to input events, the input event accepted by the menu should be consumed in full. Instead of having a leftover of that event bleed into the next context.
Exact steps for others to reproduce the error
1: Edit the hotkey setup for "transform.resize" in edit mode to activate only when the "S" key is released.
2: Get a mesh object and go to edit mode.
3: Press "W" to open the mesh special menu. Then press "S" to subdivide the cube.
4: Inconsistently, Blender will go to transform.resize mode after "S" key is released.