Skip to content

Commit 55dcf94

Browse files
committed
Be more clear in the logic, by adding a few simple parentheses.
1 parent 28133f3 commit 55dcf94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp.Wpf/WebView.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ namespace CefSharp
190190
return;
191191
}
192192

193-
if (e->Key == Key::Tab || e->Key >= Key::Left && e->Key <= Key::Down)
193+
if (e->Key == Key::Tab ||
194+
(e->Key >= Key::Left && e->Key <= Key::Down))
194195
{
195196
CefBrowser::KeyType type = e->IsDown ? KT_KEYDOWN : KT_KEYUP;
196197
CefKeyInfo keyInfo;

0 commit comments

Comments
 (0)