Re-implement the selection commands using new StepsTranslator interfaces

This re-implementation also addresses problems when navigating passed
annotations as identified in issue #65 & #65.

This also fixes a large performance issue with extending or moving the
cursor via short-cut keys.
This commit is contained in:
Philip Peitsch
2013-12-11 00:50:25 +11:00
parent cd9a933acb
commit 2ec3d857ec
5 changed files with 67 additions and 78 deletions
+3 -5
View File
@@ -49,10 +49,10 @@ define([
"RemoveCurrentSelection",
"PreloadDocument",
"BoldCurrentSelection",
"MoveCursorToEndViaCtrlEnd"
"MoveCursorToEnd"
], function (Benchmark, HTMLResultsRenderer,
OpenDocument, EnterEditMode, MoveCursorToEndDirect,InsertLetterA, Remove1Position, MoveCursor1StepLeft,
SelectEntireDocument, RemoveCurrentSelection, PreloadDocument, BoldCurrentSelection, MoveCursorToEndViaCtrlEnd) {
SelectEntireDocument, RemoveCurrentSelection, PreloadDocument, BoldCurrentSelection, MoveCursorToEnd) {
"use strict";
/**
@@ -105,9 +105,7 @@ define([
benchmark.actions.push(new PreloadDocument(config.fileUrl));
benchmark.actions.push(new OpenDocument(config.fileUrl));
benchmark.actions.push(new EnterEditMode());
if (config.includeSlow) {
benchmark.actions.push(new MoveCursorToEndViaCtrlEnd());
}
benchmark.actions.push(new MoveCursorToEnd());
benchmark.actions.push(new MoveCursorToEndDirect());
benchmark.actions.push(new InsertLetterA());
benchmark.actions.push(new Remove1Position(true));