Commit ca63ecab authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[mobile] селект текста

parent 1d8d166c
......@@ -541,6 +541,13 @@ CGraphics.prototype =
this.TextureFillTransformScaleY = 1 / this.m_oCoordTransform.sy;
this.LastFontOriginInfo = { Name : "", Replace : null };
this.m_oCurFont =
{
Name : "",
FontSize : 10,
Bold : false,
Italic : false
};
/*
if (this.IsThumbnail)
......
......@@ -3666,6 +3666,8 @@ function OfflineEditor () {
var oldrange = this.visibleRange;
this.visibleRange = range;
//console.log('range:' + ' c1:' + c1 + ' r1:' + r1 + ' c2:' + c2 +' r2:' + r2);
var cellsLeft_Local = this.cellsLeft;
var cellsTop_Local = this.cellsTop;
......@@ -5789,9 +5791,6 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
}
}
//var content = ws.objectRender.controller.curState.majorObject.getDocContent();
//content.Cursor_MoveToEndPos();
return {id:graphicsInfo.id, ischart:ischart, 'textselect':(null !== ws.objectRender.controller.selection.textSelection)};
}
......@@ -6024,11 +6023,15 @@ function offline_keyboard_down(keys) {
if (100 == keys[i][1]) {
var event = {which:codeKey,keyCode:codeKey,metaKey:false,altKey:false,ctrlKey:false,shiftKey:false, preventDefault:function(){}};
if (32 === codeKey || 8 === codeKey || 13 === codeKey) {
if (32 === codeKey || 8 === codeKey || 13 === codeKey || 27 == codeKey) {
ws.objectRender.graphicObjectKeyDown(event);
} else {
ws.objectRender.graphicObjectKeyPress(event);
}
if (27 == codeKey) {
window.AscDisableTextSelection = true;
}
}
else if (37 === codeKey) // LEFT
wb._onChangeSelection(true, -1, 0, false, false, undefined);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment