mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Added KeyBindings class.
UICodeEditor now uses the KeyBindings class.
This commit is contained in:
@@ -61,10 +61,6 @@ void mainLoop() {
|
||||
openFileDialog();
|
||||
}
|
||||
|
||||
if ( input->isControlPressed() && input->isKeyUp( KEY_S ) ) {
|
||||
codeEditor->save();
|
||||
}
|
||||
|
||||
if ( input->isKeyUp( KEY_F6 ) ) {
|
||||
uiSceneNode->setHighlightFocus( !uiSceneNode->getHighlightFocus() );
|
||||
uiSceneNode->setHighlightOver( !uiSceneNode->getHighlightOver() );
|
||||
@@ -184,6 +180,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
|
||||
uiSceneNode->bind( "code_edit", codeEditor );
|
||||
codeEditor->setFontSize( 11 );
|
||||
codeEditor->addKeyBindingString( "ctrl+s", "save" );
|
||||
|
||||
if ( file ) {
|
||||
loadFileFromPath( file.Get() );
|
||||
|
||||
Reference in New Issue
Block a user