mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #782] Behavior when selecting another item while right-clicking an item (SFTP) #638
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#638
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @itagagaki on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/782
Originally assigned to: @VShawn on GitHub.
In SFTP (and probably also in FTP), if you right-click on item A and the context menu appears, then left-click or right-click on item B, the selection does not move to item B. In this case, item B should become selected.
@VShawn commented on GitHub (Nov 23, 2024):
I'll check it later
@itagagaki commented on GitHub (Dec 6, 2024):
Make a note of what I found out during my investigation.
When I right-click somewhere other than the current selection, the events fire in the following order.
RightButtonDown
SelectionChanged
RightButtonUp
ContextMenuOpening
If I right-click on another item from this state, the
RightButtonDownandSelectionChangedhandlers are not visited. The handlers that are visited are in the following order.ContextMenuClosing
RightButtonUp
ContextMenuOpening
So the selection is not changed.
@itagagaki commented on GitHub (Dec 10, 2024):
I built a simple WPF application for experimentation.
Then right-click on each item. Right-click only.
The results are as follows. The item is correctly selected by the framework.
https://github.com/user-attachments/assets/64e9f5c0-de54-4f35-ae7c-ac9d2e13e0e9
I port the above code to 1Remote.
(To display it in the same way as the "About" view, I had to addShowInTaskbar="False" WindowStyle="None").The result:
https://github.com/user-attachments/assets/4ef1ecc7-25f0-4f94-9ad9-ee5700de8995
It is correct that Item 1 is selected first, but the selection does not change after that.
The cause of the differences in results is still under investigation.
@itagagaki commented on GitHub (Dec 11, 2024):
Okay, I've got the tail.
Not sure if the modification below is correct, but it seems to work correctly if you do it anyway.
@VShawn commented on GitHub (Dec 12, 2024):
uh...Just need to remove one line?
I can't remember why I put
StaysOpen=Falsethere 😕 , but it seems removing it has no bad effect@itagagaki commented on GitHub (Dec 12, 2024):
Confirmed that the issue has been resolved 👍