mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Closes SpartanJ/ecode#23.
This commit is contained in:
@@ -2061,6 +2061,8 @@ void App::initProjectTreeView( const std::string& path ) {
|
||||
mSettings->createProjectTreeMenu();
|
||||
} );
|
||||
mProjectTreeView->addEventListener( Event::KeyDown, [&]( const Event* event ) {
|
||||
if ( !mFileSystemModel )
|
||||
return 0;
|
||||
const KeyEvent* keyEvent = static_cast<const KeyEvent*>( event );
|
||||
if ( keyEvent->getKeyCode() == KEY_F2 ) {
|
||||
ModelIndex modelIndex = mProjectTreeView->getSelection().first();
|
||||
|
||||
Reference in New Issue
Block a user