Fix the focus not on the opening new file issue

Move focus to edit window when opening a new file.

Fix #8426, close #8442
This commit is contained in:
Udo Hoffmann 2020-06-19 22:37:31 +02:00 committed by Don HO
parent 6f09695c2d
commit f7efc2abc0
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -1794,7 +1794,7 @@ void Notepad_plus::fileNew()
BufferID newBufID = MainFileManager.newEmptyDocument(); BufferID newBufID = MainFileManager.newEmptyDocument();
loadBufferIntoView(newBufID, currentView(), true); //true, because we want multiple new files if possible loadBufferIntoView(newBufID, currentView(), true); //true, because we want multiple new files if possible
activateBuffer(newBufID, currentView()); switchToFile(newBufID);
} }