Save selection to allow replay during undo

This commit is contained in:
Ian Gulliver
2019-07-12 01:05:04 +00:00
parent ed5c79c05d
commit 970c3faba9
7 changed files with 38 additions and 20 deletions

View File

@@ -1,12 +1,12 @@
<!--# include file="ListenUtils.js" -->
class EditorEntryBase extends ListenUtils {
constructor() {
constructor(id) {
super();
this.elem_ = document.createElement('li');
this.elem_.tabIndex = 0;
this.elem_.id = 'entry' + idSource.getId();
this.elem_.id = (id || ('entry' + idSource.getId()));
this.listen(this.elem_, 'focus', () => this.onElemFocus());
this.listen(this.elem_, 'keydown', (e) => this.onKeyDown(e));