Update ACE Editor to version 1.2.9

The new ACE editor introduces full support for emojis (and, thereby, UTF-16 characters with high- and low-surrogates). Hence, we can remove our custom fix.

Further, this update will allow emojis to be used in pair programming sessions.
This commit is contained in:
Sebastian Serth
2023-09-12 18:45:47 +02:00
parent 13bd68d760
commit 60656443e2
210 changed files with 66466 additions and 33266 deletions

View File

@@ -288,13 +288,13 @@ var onSelectionChange = function(evt) {
}
};
var onChange = function(delta) {
switch (data.action) {
switch (delta.action) {
case 'remove':
cvox.Api.speak(data.text, 0, DELETED_PROP);
cvox.Api.speak(delta.text, 0, DELETED_PROP);
changed = true;
break;
case 'insert':
cvox.Api.speak(data.text, 0);
cvox.Api.speak(delta.text, 0);
changed = true;
break;
}
@@ -479,7 +479,7 @@ var SHORTCUTS = [
desc: 'Focus text'
}
];
var onFocus = function() {
var onFocus = function(_, editor) {
cvoxAce.editor = editor;
editor.getSession().selection.on('changeCursor', onCursorChange);
editor.getSession().selection.on('changeSelection', onSelectionChange);
@@ -492,7 +492,7 @@ var onFocus = function() {
lastCursor = editor.selection.getCursor();
};
var init = function(editor) {
onFocus();
onFocus(null, editor);
SHORTCUTS.forEach(function(shortcut) {
keyCodeToShortcutMap[shortcut.keyCode] = shortcut;
cmdToShortcutMap[shortcut.cmd] = shortcut;