« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js6
1 files 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'})},