mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[de] Fix bug #78101
This commit is contained in:
@ -34,6 +34,8 @@
|
||||
|
||||
(function (window)
|
||||
{
|
||||
let oMacroRecorderContext = {};
|
||||
|
||||
/**
|
||||
* @param editor
|
||||
* @constructor
|
||||
@ -51,6 +53,8 @@
|
||||
this.actionCount = 0;
|
||||
this.isFirstAction = null;
|
||||
this.currentDescription = null;
|
||||
|
||||
oMacroRecorderContext = this;
|
||||
}
|
||||
|
||||
MacroRecorder.prototype.start = function(macroName)
|
||||
@ -77,6 +81,10 @@
|
||||
{
|
||||
if (e.KeyCode === 8) // BackSpace
|
||||
{
|
||||
_t.addStepData("remove", 1);
|
||||
// TODO when we have:
|
||||
// * Selection.Delete
|
||||
// * Selection.TypeBackspace
|
||||
}
|
||||
else if (e.KeyCode === 9) // Tab
|
||||
{
|
||||
@ -308,6 +316,13 @@
|
||||
if (!this.isInProgress() || this.isPaused() || undefined === additional)
|
||||
return;
|
||||
|
||||
// for meta action
|
||||
if (type === 'remove')
|
||||
{
|
||||
this.getResultByType(type, additional);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.prevChangeType === type)
|
||||
{
|
||||
this.prevData = this.joinDataForMacros(this.prevData, additional);
|
||||
@ -981,6 +996,11 @@
|
||||
},
|
||||
deleteButton : function(){
|
||||
return "";
|
||||
},
|
||||
remove : function(){
|
||||
if (oMacroRecorderContext.prevChangeType === AscDFH.historydescription_Document_AddLetter && oMacroRecorderContext.prevData.length)
|
||||
oMacroRecorderContext.prevData.pop();
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
@ -1029,6 +1049,7 @@
|
||||
WordActionsMacroList['moveCursorRight'] = wordActions.moveCursorRight;
|
||||
WordActionsMacroList['moveCursorUp'] = wordActions.moveCursorUp;
|
||||
WordActionsMacroList['moveCursorDown'] = wordActions.moveCursorDown;
|
||||
WordActionsMacroList['remove'] = wordActions.remove;
|
||||
|
||||
//WordActionsMacroList[AscDFH.historydescription_Document_BackSpaceButton] = wordActions.backSpaceButton;
|
||||
// WordActionsMacroList[AscDFH.historydescription_Document_DeleteButton] = wordActions.deleteButton;
|
||||
|
||||
Reference in New Issue
Block a user