From 366d162c6b4bf2e9365ba08c0fab6b76641d5e28 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 3 Aug 2018 10:46:19 -0300 Subject: Move Mark into menu --- ui.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui.js b/ui.js index 1c673a5..af7db75 100644 --- a/ui.js +++ b/ui.js @@ -933,15 +933,13 @@ class GrouplikeItemElement extends Button { } } else if (telc.isCaselessLetter(keyBuf, 'x')) { this.emit('remove') - /* - } else if (telc.isCaselessLetter(keyBuf, 'm')) { - this.emit('mark') - */ } else if (telc.isCaselessLetter(keyBuf, 'm')) { + const editMode = this.recordStore.app.editMode this.emit('menu', { x: this.absLeft, y: this.absTop + 1, items: [ + editMode && {label: this.isMarked ? 'Unmark' : 'Mark', action: () => this.emit('mark')}, {label: 'Play', action: () => this.emit('queue', {where: 'next', play: true})}, {label: 'Play next', action: () => this.emit('queue', {where: 'next'})}, {label: 'Play at end', action: () => this.emit('queue', {where: 'end'})}, -- cgit 1.3.0-6-gf8a5