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:
10
vendor/assets/javascripts/ace/ext-chromevox.js
vendored
10
vendor/assets/javascripts/ace/ext-chromevox.js
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user