Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Issue #8191 : New instance with shift+click #525

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions appshell/cefclient_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
if (exit_code >= 0)
return exit_code;

bool isShiftKeyDown = (GetAsyncKeyState(VK_SHIFT) & 0x8000) ? true: false;
bool isRightShiftKeyDown = (GetAsyncKeyState(VK_RSHIFT) & 0x8000) ? true: false;

// Retrieve the current working directory.
if (_getcwd(szWorkingDir, MAX_UNC_PATH) == NULL)
Expand Down Expand Up @@ -246,8 +246,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
wcscpy(szInitialUrl, cmdLine->GetSwitchValue(cefclient::kStartupPath).c_str());
}
else {
// If the shift key is not pressed, look for the index.html file
if (!isShiftKeyDown) {
// If the right shift key is not pressed, look for the index.html file
if (!isRightShiftKeyDown) {
// Get the full pathname for the app. We look for the index.html
// file relative to this location.
wchar_t appPath[MAX_UNC_PATH];
Expand Down