Skip to content

Commit

Permalink
address analysis warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Dec 13, 2019
1 parent 973e8a4 commit 0cec54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/win32/bindings/GridBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ LRESULT GridBinding::OnLvnItemChanging(const LPNMLISTVIEW pnmListView)
{
// when CTRL+clicking to open the in-place editor, the CTRL+click will try to deselect the item.
// if CTRL is pressed and the in-place editor will open, prevent the deselect.
if (GetAsyncKeyState(VK_LCONTROL) < 0 | GetAsyncKeyState(VK_RCONTROL) < 0)
if (GetAsyncKeyState(VK_LCONTROL) < 0 || GetAsyncKeyState(VK_RCONTROL) < 0)
{
// determine which row/column the user actually clicked on
LVHITTESTINFO lvHitTestInfo{};
Expand Down

0 comments on commit 0cec54f

Please sign in to comment.