-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Current Behavior
Apps in the start menu only respond to left-click events to launch the application. Right-clicking on an app in the start menu does nothing, or shows the browser's default context menu. Users who want to pin an app to the taskbar must first launch the app, then interact with its taskbar item. There is no way to pin an app directly from the start menu, and no context menu appears when right-clicking apps in the start menu.
Reproduction Steps:
- Click the start button to open the start menu
- Right-click on any app in the start menu
- Observe: Either nothing happens or the browser's default context menu appears
- Try to pin an app to the taskbar without launching it first
- Observe: This is not possible from the start menu
Expected Behavior
When a user right-clicks (or long-presses on mobile devices) an app in the start menu, a context menu should appear with relevant actions. The context menu should include an "Open" option to launch the app, and either "Keep in taskbar" or "Remove from taskbar" depending on whether the app is currently pinned. The menu should properly handle the pinned state of apps, creating new taskbar items when pinning unpinned apps, and removing taskbar items when unpinning apps that have no open windows. All existing context menus should be closed when a new one is opened, and context menus should close when clicking elsewhere or when launching an app.
Acceptance Criteria:
- Right-clicking an app in the start menu displays a context menu with "Open" and pin/unpin options
- The context menu shows "Keep in taskbar" for unpinned apps and "Remove from taskbar" for pinned apps
- Selecting "Open" from the context menu launches the app and closes both the context menu and start menu
- Pinning an app from the context menu adds it to the taskbar and persists across sessions
- Unpinning an app removes it from the taskbar (if no windows are open) and persists the change
- Opening a context menu closes any previously open context menus
- Context menus close when clicking outside them
Steps To Test
- Open the start menu and right-click on an app that is not pinned to the taskbar
- Verify a context menu appears with "Open" and "Keep in taskbar" options
- Click "Keep in taskbar" and verify the app appears in the taskbar
- Right-click the same app in the start menu again
- Verify the context menu now shows "Remove from taskbar" instead of "Keep in taskbar"
- Click "Remove from taskbar" and verify the app is removed from the taskbar (if no windows are open)
- Open a context menu and click elsewhere - verify it closes
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx