mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 05:26:04 +03:00
[PR #1050] [MERGED] Fix: focus selected tab content #954
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#954
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?
📋 Pull Request Information
Original PR: https://github.com/1Remote/1Remote/pull/1050
Author: @itagagaki
Created: 1/2/2026
Status: ✅ Merged
Merged: 1/5/2026
Merged by: @VShawn
Base:
main← Head:fix-530-focus-selected-tab-content📝 Commits (3)
a7f95c5fix: focus selected tab contentd3c2a63Use SetForegroundWindow instead of the sending WM_SETFOCUSbfbd4bfAdd comments📊 Changes
3 files changed (+97 additions, -2 deletions)
View changed files
📝
Ui/Utils/WindowsApi/WindowsVersionHelper.cs(+23 -0)📝
Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.xaml.cs(+2 -1)📝
Ui/View/Host/TabWindowViewModel.cs(+72 -1)📄 Description
This resolve #530
This is not perfect but almost fine.
In the following case, keystrokes do not reach the active window on the remote host:
The cause is unknown. However, if you make activate a remote window by clicking on it with the mouse, keystrokes will reach it. After that, switching tabs will correctly send keystrokes to the active window of the host that has been switched to.
For now, I think it's best to merge this fix and file the above case as a new issue.
(P.S. Filed. --> #1052)
I have left the code for AxMsRdpClient09Host.FocusOnMe() as-is since I don't understand its intention, but the application behaves as expected even without calling it (except for the aforementioned issue).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.