mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Improved and simplified how the menus and sub-menus interact and behave.
Fixed code editor find and replace editor focus.
This commit is contained in:
@@ -820,6 +820,7 @@ void App::showFindView() {
|
||||
} else if ( !findInput->getText().empty() ) {
|
||||
findInput->getDocument().selectAll();
|
||||
}
|
||||
mCurEditor->getDocument().setActiveClient( mCurEditor );
|
||||
}
|
||||
|
||||
void App::closeApp() {
|
||||
@@ -917,6 +918,8 @@ void App::createSettingsMenu() {
|
||||
mSettingsMenu->show();
|
||||
} );
|
||||
mSettingsMenu->addEventListener( Event::OnItemClicked, [&]( const Event* event ) {
|
||||
if ( !event->getNode()->isType( UI_TYPE_MENUITEM ) )
|
||||
return;
|
||||
const String& name = event->getNode()->asType<UIMenuItem>()->getText();
|
||||
if ( name == "New" ) {
|
||||
runCommand( "create-new" );
|
||||
|
||||
Reference in New Issue
Block a user