Skip to content

Commit

Permalink
property: Fix that the focus moves when Alt+A is pressed
Browse files Browse the repository at this point in the history
The focus should not move if the Apply button doesn't have a focus.
Related: ca4bc18
  • Loading branch information
k-takata committed Sep 5, 2016
1 parent dfe78a5 commit ad7480a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/property/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ void OnApply(HWND hDlg)
g_bApplyMain = FALSE;
}

if(GetFocus() == GetDlgItem(hDlg, IDC_APPLY))
PostMessage(hDlg, WM_NEXTDLGCTL, 0, FALSE);
EnableDlgItem(hDlg, IDC_APPLY, FALSE);
PostMessage(hDlg, WM_NEXTDLGCTL, 0, FALSE);
}

/*-------------------------------------------
Expand Down

0 comments on commit ad7480a

Please sign in to comment.