0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-10 03:08:40 +00:00

lint pass

This commit is contained in:
Víctor Losada Hernández
2026-04-15 10:28:28 +02:00
parent 44d2f6c548
commit 98749ed3e0
4 changed files with 7 additions and 7 deletions
@@ -49,9 +49,9 @@ const emojiCompletionList = (context)=>{
//Info is the tooltip
return {
from : word.from + 1,
from : word.from + 1,
options,
filter: false,
filter : false,
};
};
+1 -1
View File
@@ -364,7 +364,7 @@ const CodeEditor = forwardRef(
view.dispatch({
selection : { anchor: pos },
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
});
view.focus();
+1 -1
View File
@@ -87,7 +87,7 @@ const Editor = createReactClass({
componentDidMount : function() {
const brewRenderer = document.getElementById('BrewRenderer');
brewRenderer.onload = () => brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
brewRenderer.onload = ()=>brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
document.addEventListener('keydown', this.handleControlKeys);
const editorTheme = window.localStorage.getItem(EDITOR_THEME_KEY);