mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Added context menu on UICodeEditor.
This commit is contained in:
@@ -1346,6 +1346,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
|
||||
editor->setEnableColorPickerOnSelection( config.colorPickerSelection );
|
||||
editor->setColorPreview( config.colorPreview );
|
||||
editor->setFont( mFontMono );
|
||||
editor->setMenuIconSize( mMenuIconSize );
|
||||
doc.setAutoCloseBrackets( !mConfig.editor.autoCloseBrackets.empty() );
|
||||
doc.setAutoCloseBracketsPairs( makeAutoClosePairs( mConfig.editor.autoCloseBrackets ) );
|
||||
doc.setAutoDetectIndentType( config.autoDetectIndentType );
|
||||
@@ -1456,6 +1457,10 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
|
||||
ed->getKeyBindings().addKeybindsString( mKeybindings );
|
||||
} );
|
||||
}
|
||||
if ( !editor->getDocument().hasSyntaxDefinition() ) {
|
||||
editor->getDocument().resetSyntax();
|
||||
editor->setSyntaxDefinition( editor->getDocument().getSyntaxDefinition() );
|
||||
}
|
||||
} );
|
||||
|
||||
editor->addEventListener(
|
||||
|
||||
Reference in New Issue
Block a user