moudey / Shell

Powerful context menu manager for Windows File Explorer
https://nilesoft.org
MIT License
2.88k stars 96 forks source link

(Not a) Bug when holding Shift or Ctrl #437

Closed maxik34 closed 3 months ago

maxik34 commented 3 months ago

If you select a file or folder and then, while holding Shift, click on an empty area of ​​the desktop/explorer, a context menu for this selected file/folder will open. bug Windows 7 Ultimate x64

RubicBG commented 3 months ago

This behavior is a result of the way Windows handles multi-selection. Normally, when you hold down Shift or Ctrl and click on multiple items, you're indicating to Windows that you want to select multiple items. However, if you hold down Shift or Ctrl and then click on an empty area of the desktop or Explorer window, Windows interprets this as a request to display the context menu for the selected item(s), rather than initiating a new selection action.

In essence, Shift and Ctrl are still interpreted as part of the multi-selection action, even when you're interacting with context menus, because Windows recognizes that you might want to perform actions on multiple selected items. Therefore, it maintains the context of the last selected item(s) and displays the appropriate context menu accordingly.

maxik34 commented 3 months ago

Oh, I didn’t notice that this exists in the default context menu. This means it's not a bug..