Skip to content

Commit ff79651

Browse files
Use Equals() for comparison
1 parent 10fa2f7 commit ff79651

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ private void TbHotkey_OnPreviewKeyDown(object sender, KeyEventArgs e)
5454
specialKeyState.CtrlPressed,
5555
key);
5656

57-
var hotkeyString = hotkeyModel.ToString();
58-
59-
if (hotkeyString == tbHotkey.Text)
57+
if (hotkeyModel.Equals(CurrentHotkey))
6058
{
6159
return;
6260
}

0 commit comments

Comments
 (0)