From 38b8814d60cfbf63f9434b8e1379d67be759ccfc Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Tue, 24 May 2022 16:50:59 +0200 Subject: [PATCH] fix: keyboard i/o now modify selected annotation --- app/www/annotate.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/www/annotate.js b/app/www/annotate.js index 3e713ad..3db7e80 100644 --- a/app/www/annotate.js +++ b/app/www/annotate.js @@ -380,6 +380,13 @@ class Annotator extends EventTarget { this.drawStrokePosition(this.inPointPosition, this.outPointPosition); console.log([`${this.inPointTimeMs}`, `${this.outPointTimeMs}`]) this.slider.set([this.inPointTimeMs, this.outPointTimeMs]); + + // console.log(this.selectedAnnotation); + if (this.selectedAnnotation) { + this.selectedAnnotation.t_in = in_ms; + this.selectedAnnotation.t_out = out_ms; + this.updateAnnotations(false); + } } resetInOutPoint() {