You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π€ This PR was created by Repo Assist, an automated AI assistant.
Summary
RegisterHotKey() is called for Ctrl+Shift+L, Ctrl+Shift+β, and Ctrl+Shift+β without checking the return value. If another application already holds one of these shortcuts, the call silently returns false and the hotkey stops working with no feedback to the user.
gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64
Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch repo-assist/fix-hotkey-feedback-2026-06-18-9c056fd93a86040d-8229c2459105f5ee.
To fix the permissions issue, go to Settings β Actions β General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (80 of 80 lines)
From 652ecca3bf69966351a8a5d53d31469d80461cf1 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 18 Jun 2026 14:02:17 +0000
Subject: [PATCH] fix: notify user when global hotkey registration fails
RegisterHotKey() is called for Ctrl+Shift+L, Ctrl+Shift+Up, and
Ctrl+Shift+Down without checking the return value. If another app
already owns one of these shortcuts the call silently fails and the
hotkey stops working with no feedback.
Add RegisterHotKeyWithFeedback() helper that:
- Checks the bool returned by RegisterHotKey- Shows a tray balloon tip on the FIRST failure only (no spam)- Identifies the conflicting shortcut by name in the tip text- Logs subsequent failures to Debug only
Build: 0 errors, 0 warnings (net10.0-windows, EnableWindowsTargeting=true)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
WindowsEdgeLight/MainWindow.xaml.cs | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/WindowsEdgeLight/MainWindow.xaml.cs b/WindowsEdgeLight/MainWindow.xaml.cs
index c24a3c7..6435ddf 100644
--- a/WindowsEdgeLight/MainWindow.xaml.cs+++ b/WindowsEdgeLight/MainWindow.xaml.cs@@ -134,6 +134,8 @@ public partial class MainWindow : Window
private IntPtr mouseHookHandle = IntPtr.Zero;
private LowLevelMouseProc? mouseHookCallback;
+ private bool _hotkeyWarningShown = false;+
private Rect? frameOuterRect;
private Rect? frameInnerRect;
private readonly Ellipse? hoverCursorRing;
@@ -298,10 +300,10 @@ Version {version}";
int extendedStyle = GetWindowLong(hwnd, GWL_EXSTYLE);
SetWindowLong(hwnd, GWL_EXSTYLE, extendedStyle | WS_EX_TRANSPARENT | WS_EX_LAYERED);
- // Register global hotkeys- RegisterHotKey(hwnd, HOTKEY_TOGGLE, MOD_CONTROL | MOD_SHIFT, VK_L);- RegisterHotKey(hwnd, HOTKEY_BRIGHTNESS_UP, MOD_CONTROL | MOD_SHIFT, VK_UP);- RegisterHotKey(hwn
... (truncated)
π€ This PR was created by Repo Assist, an automated AI assistant.
Summary
RegisterHotKey()is called for Ctrl+Shift+L, Ctrl+Shift+β, and Ctrl+Shift+β without checking the return value. If another application already holds one of these shortcuts, the call silently returnsfalseand the hotkey stops working with no feedback to the user.Closes #59
Root Cause
The three
RegisterHotKeycalls inWindow_Loadeddiscarded their boolean return values. There was no code path to surface a conflict to the user.Fix
Added a
RegisterHotKeyWithFeedbackhelper that:RegisterHotKey_hotkeyWarningShown = trueso only one balloon is shown per session β no spamTrade-offs
Test Status
dotnet build /p:EnableWindowsTargeting=true(Cross-compiled on Linux with
EnableWindowsTargeting=truerequired for WPF.)Note
π Integrity filter blocked 4 items
The following items were blocked because they don't meet the GitHub integrity level.
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter:Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
repo-assist/fix-hotkey-feedback-2026-06-18-9c056fd93a86040d-8229c2459105f5ee.Click here to create the pull request
To fix the permissions issue, go to Settings β Actions β General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (80 of 80 lines)