Bug 502768 - If for the first time since boot you Shift+Del an item then immediately press enter; you'll open the file instead of deleting as the window spawns
Summary: If for the first time since boot you Shift+Del an item then immediately press...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-14 03:57 UTC by Fernando M. Muniz
Modified: 2025-04-14 07:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando M. Muniz 2025-04-14 03:57:15 UTC
1- Restart/boot your PC.
2- Shift+Del+Enter an item.

Result:
The file opens.

Expected result:
If the ONLY you thing you do between the Shift+Del and the confirmation pop up appearing is pressing Enter; the Enter input should be transferred to the "Delete permanently" once the pop up appears.
Comment 1 John Kizer 2025-04-14 07:07:00 UTC
Just to confirm - your expected result here would be that a destructive action (permanently deleting a file) should be taken without the user explicitly taking an action on a visible prompt? This seems highly undesirable.

Is there a long delay after rebooting between trying to delete a file and the confirmation appearing? Perhaps that is the real issue?
Comment 2 Fernando M. Muniz 2025-04-14 07:17:50 UTC
(In reply to John Kizer from comment #1)
> Just to confirm - your expected result here would be that a destructive
> action (permanently deleting a file) should be taken without the user
> explicitly taking an action on a visible prompt? This seems highly
> undesirable.
> 
> Is there a long delay after rebooting between trying to delete a file and
> the confirmation appearing? Perhaps that is the real issue?

You mean that the confirmation window not appearing immediately is a bug? Is that window meant to be loaded with the whole system?
Comment 3 John Kizer 2025-04-14 07:31:12 UTC
I’m asking if what you’re reporting as a bug is:

“It takes an unusually long time for the confirmation dialog to appear after pressing Shift+Del for the first time” (also, where is said item? On the desktop?)

Or

“Keystrokes made after an action is taken that requires confirmation, but before the confirmation prompt appears, are not queued up and applied to that prompt once it does appear”

Just intuitively, the former sounds like a bug, while the latter sounds like intentional behavior - so I’m just trying to understand the core issue at hand.
Comment 4 Fernando M. Muniz 2025-04-14 07:36:06 UTC
(In reply to John Kizer from comment #3)
> I’m asking if what you’re reporting as a bug is:
> 
> “It takes an unusually long time for the confirmation dialog to appear after
> pressing Shift+Del for the first time” (also, where is said item? On the
> desktop?)
> 
> Or
> 
> “Keystrokes made after an action is taken that requires confirmation, but
> before the confirmation prompt appears, are not queued up and applied to
> that prompt once it does appear”
> 
> Just intuitively, the former sounds like a bug, while the latter sounds like
> intentional behavior - so I’m just trying to understand the core issue at
> hand.

On the desktop, yes.
The issue is the former, but since it seemed like the confirmation windows simply needs time to naturally load for the fist time, I had the idea of transferring the input.
Comment 5 Fernando M. Muniz 2025-04-14 07:52:36 UTC
Ok. Closing this one.

Created Bug 502776