mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Menu Bar keyboard navigation improvements.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "pluginmanager.hpp"
|
||||
#include "../filesystemlistener.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "pluginmanager.hpp"
|
||||
#include <eepp/system/filesystem.hpp>
|
||||
#include <eepp/ui/uicheckbox.hpp>
|
||||
#include <eepp/ui/uitableview.hpp>
|
||||
@@ -494,6 +494,11 @@ UIWindow* UIPluginManager::New( UISceneNode* sceneNode, PluginManager* manager,
|
||||
plugin->removeReadyCallback( cb.second );
|
||||
}
|
||||
} );
|
||||
win->on( Event::KeyDown, [win]( const Event* event ) {
|
||||
const KeyEvent* kevent = event->asKeyEvent();
|
||||
if ( kevent->getKeyCode() == EE::Window::KEY_ESCAPE )
|
||||
win->close();
|
||||
} );
|
||||
win->center();
|
||||
return win;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user