Просмотр исходного кода

Every key of the F1 shortcut sheet is a key-map action: Piano roll transpose / octave in Manage shortcuts (issue #327, in 0.1.31.x)

Round 190sj. The Piano roll caught Ctrl+A / C / X / V / B / P / D, Alt+M, Shift+Alt+M and the arrows (Shift+Up/Down a
semitone, Ctrl+Up/Down an octave, Shift+Left/Right a grid step) in its own key handler, and the Playlist its
Ctrl+A / C / X / V / B: Manage shortcuts had no entry for them (no "octave"), and a remap never reached them. They are
key-map actions now, with FL's keys (ShortcutsModule EEShiftU/D, EEShiftU12/D12, EEShiftL/R, EEMute/EEUnmute,
EEDesel; REA 167j) and the plain arrows (LYNX extra) as second keys; nothing changes for a user who keeps the defaults.

The F1 sheet's rows are data now (keys::sheet in core/KeyMap): each keyboard row names its actions, and the sheet writes
the live map's keys (a remapped key too; macOS: FL-for-Mac's Cmd / Opt names, which the static rows never had). Ctrl+T
stays FL's: with the Playlist or the Piano roll focused it adds an "Auto" time marker (REA 168t2, measured), and the
sheet now says so.

Checks: lynx_tests keysheet190sj_* (every sheet row maps to existing actions in its panel, FL's keys, the Mac names,
a remap); --selftest "keysheet190sj" presses all 259 sheet keys in their panels with the typing keyboard off and on,
checks that the key map's action runs, and that the only General keys a panel keeps for itself are FL's (Ctrl+T in the
Playlist / Piano roll, Ctrl+Shift+S in the Mixer, Enter in the Browser); then Shift/Ctrl+arrows move notes and a
remapped octave key works. --keyroute190sjtest presses them through the native window (Windows: posted to the focused
window). --uhe190sjtest (issues #329 / #255): u-he editors opened, closed and removed in sequence and together.
New strings in all 14 tables.
Ka1-S 5 дней назад
Родитель
Сommit
e24ef7414d

+ 23 - 0
resources/i18n/de.txt

@@ -13175,3 +13175,26 @@ countries: de at ch li lu
 "Continuous scrolling" = "Kontinuierliches Scrollen"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Ersetzt das Sample von {0} durch {1}: Clips, Insert und Effekte bleiben  [Shift] neuer Clip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Ein auf einen Pattern-Clip gezogenes Sample bewirkt nichts, wie in FL Studio  [Shift] neuer Clip"
+"Copy the selected notes" = "Ausgewählte Noten kopieren"
+"Cut the selected notes (all when none is selected)" = "Ausgewählte Noten ausschneiden (alle, wenn keine ausgewählt ist)"
+"Paste notes" = "Noten einfügen"
+"Duplicate the selected notes (to the right)" = "Ausgewählte Noten duplizieren (nach rechts)"
+"Portamento on/off (the selected notes)" = "Portamento ein/aus (die ausgewählten Noten)"
+"Deselect (notes and time)" = "Auswahl aufheben (Noten und Zeit)"
+"Mute the selected notes (all when none is selected)" = "Ausgewählte Noten stummschalten (alle, wenn keine ausgewählt ist)"
+"Unmute the selected notes (all when none is selected)" = "Stummschaltung der ausgewählten Noten aufheben (alle, wenn keine ausgewählt ist)"
+"Transpose up (the selected notes, a semitone)" = "Nach oben transponieren (die ausgewählten Noten, ein Halbton)"
+"Transpose down (the selected notes, a semitone)" = "Nach unten transponieren (die ausgewählten Noten, ein Halbton)"
+"Transpose one octave up (the selected notes)" = "Eine Oktave nach oben transponieren (die ausgewählten Noten)"
+"Transpose one octave down (the selected notes)" = "Eine Oktave nach unten transponieren (die ausgewählten Noten)"
+"Shift left (the selected notes, one grid step)" = "Nach links verschieben (die ausgewählten Noten, ein Rasterschritt)"
+"Shift right (the selected notes, one grid step)" = "Nach rechts verschieben (die ausgewählten Noten, ein Rasterschritt)"
+"Select all (clips and time)" = "Alles auswählen (Clips und Zeit)"
+"Copy the selected clips" = "Ausgewählte Clips kopieren"
+"Cut the selected clips" = "Ausgewählte Clips ausschneiden"
+"Paste clips" = "Clips einfügen"
+"Duplicate the selected clips (to the right)" = "Ausgewählte Clips duplizieren (nach rechts)"
+"Transpose a semitone / move by the grid" = "Einen Halbton transponieren / im Raster verschieben"
+"Transpose an octave" = "Eine Oktave transponieren"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Computertastatur als Klavier ein/aus (mit fokussierter Playlist oder Piano Roll: ein Zeitmarker, wie in FL)"
+"Selector" = "Auswahlfeld"

+ 23 - 0
resources/i18n/es.txt

@@ -13175,3 +13175,26 @@ countries: es mx ar co cl pe ve
 "Continuous scrolling" = "Desplazamiento continuo"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Sustituye el sample de {0} por {1}: sus clips, el insert y los efectos se mantienen  [Shift] clip nuevo"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Un sample soltado sobre un clip de patrón no hace nada, como en FL Studio  [Shift] clip nuevo"
+"Copy the selected notes" = "Copiar las notas seleccionadas"
+"Cut the selected notes (all when none is selected)" = "Cortar las notas seleccionadas (todas si no hay ninguna seleccionada)"
+"Paste notes" = "Pegar notas"
+"Duplicate the selected notes (to the right)" = "Duplicar las notas seleccionadas (a la derecha)"
+"Portamento on/off (the selected notes)" = "Portamento activado/desactivado (las notas seleccionadas)"
+"Deselect (notes and time)" = "Deseleccionar (notas y tiempo)"
+"Mute the selected notes (all when none is selected)" = "Silenciar las notas seleccionadas (todas si no hay ninguna seleccionada)"
+"Unmute the selected notes (all when none is selected)" = "Quitar el silencio de las notas seleccionadas (todas si no hay ninguna seleccionada)"
+"Transpose up (the selected notes, a semitone)" = "Transponer hacia arriba (las notas seleccionadas, un semitono)"
+"Transpose down (the selected notes, a semitone)" = "Transponer hacia abajo (las notas seleccionadas, un semitono)"
+"Transpose one octave up (the selected notes)" = "Transponer una octava arriba (las notas seleccionadas)"
+"Transpose one octave down (the selected notes)" = "Transponer una octava abajo (las notas seleccionadas)"
+"Shift left (the selected notes, one grid step)" = "Desplazar a la izquierda (las notas seleccionadas, un paso de la cuadrícula)"
+"Shift right (the selected notes, one grid step)" = "Desplazar a la derecha (las notas seleccionadas, un paso de la cuadrícula)"
+"Select all (clips and time)" = "Seleccionar todo (clips y tiempo)"
+"Copy the selected clips" = "Copiar los clips seleccionados"
+"Cut the selected clips" = "Cortar los clips seleccionados"
+"Paste clips" = "Pegar clips"
+"Duplicate the selected clips (to the right)" = "Duplicar los clips seleccionados (a la derecha)"
+"Transpose a semitone / move by the grid" = "Transponer un semitono / mover por la cuadrícula"
+"Transpose an octave" = "Transponer una octava"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Teclado de escritura como piano activado/desactivado (con la Playlist o el Piano roll enfocados: un marcador de tiempo, como en FL)"
+"Selector" = "Selector"

+ 23 - 0
resources/i18n/fr.txt

@@ -13175,3 +13175,26 @@ countries: fr be ch ca lu
 "Continuous scrolling" = "Défilement continu"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Remplace l'échantillon de {0} par {1} : ses clips, l'insert et les effets restent  [Shift] nouveau clip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Un échantillon déposé sur un clip de pattern ne fait rien, comme dans FL Studio  [Shift] nouveau clip"
+"Copy the selected notes" = "Copier les notes sélectionnées"
+"Cut the selected notes (all when none is selected)" = "Couper les notes sélectionnées (toutes si aucune n'est sélectionnée)"
+"Paste notes" = "Coller des notes"
+"Duplicate the selected notes (to the right)" = "Dupliquer les notes sélectionnées (vers la droite)"
+"Portamento on/off (the selected notes)" = "Portamento activé/désactivé (les notes sélectionnées)"
+"Deselect (notes and time)" = "Désélectionner (notes et temps)"
+"Mute the selected notes (all when none is selected)" = "Rendre muettes les notes sélectionnées (toutes si aucune n'est sélectionnée)"
+"Unmute the selected notes (all when none is selected)" = "Réactiver les notes sélectionnées (toutes si aucune n'est sélectionnée)"
+"Transpose up (the selected notes, a semitone)" = "Transposer vers le haut (les notes sélectionnées, un demi-ton)"
+"Transpose down (the selected notes, a semitone)" = "Transposer vers le bas (les notes sélectionnées, un demi-ton)"
+"Transpose one octave up (the selected notes)" = "Transposer d'une octave vers le haut (les notes sélectionnées)"
+"Transpose one octave down (the selected notes)" = "Transposer d'une octave vers le bas (les notes sélectionnées)"
+"Shift left (the selected notes, one grid step)" = "Décaler à gauche (les notes sélectionnées, un pas de grille)"
+"Shift right (the selected notes, one grid step)" = "Décaler à droite (les notes sélectionnées, un pas de grille)"
+"Select all (clips and time)" = "Tout sélectionner (clips et temps)"
+"Copy the selected clips" = "Copier les clips sélectionnés"
+"Cut the selected clips" = "Couper les clips sélectionnés"
+"Paste clips" = "Coller des clips"
+"Duplicate the selected clips (to the right)" = "Dupliquer les clips sélectionnés (vers la droite)"
+"Transpose a semitone / move by the grid" = "Transposer d'un demi-ton / déplacer selon la grille"
+"Transpose an octave" = "Transposer d'une octave"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Clavier d'ordinateur en piano activé/désactivé (Playlist ou Piano roll au premier plan : un marqueur de temps, comme dans FL)"
+"Selector" = "Sélecteur"

+ 23 - 0
resources/i18n/id.txt

@@ -13175,3 +13175,26 @@ countries: id
 "Continuous scrolling" = "Gulir berkelanjutan"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Mengganti sampel {0} dengan {1}: klip, insert, dan efeknya tetap  [Shift] klip baru"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Sampel yang dijatuhkan pada klip pola tidak melakukan apa-apa, seperti di FL Studio  [Shift] klip baru"
+"Copy the selected notes" = "Salin not yang dipilih"
+"Cut the selected notes (all when none is selected)" = "Potong not yang dipilih (semua jika tidak ada yang dipilih)"
+"Paste notes" = "Tempel not"
+"Duplicate the selected notes (to the right)" = "Gandakan not yang dipilih (ke kanan)"
+"Portamento on/off (the selected notes)" = "Portamento aktif/nonaktif (not yang dipilih)"
+"Deselect (notes and time)" = "Batalkan pilihan (not dan waktu)"
+"Mute the selected notes (all when none is selected)" = "Bisukan not yang dipilih (semua jika tidak ada yang dipilih)"
+"Unmute the selected notes (all when none is selected)" = "Bunyikan lagi not yang dipilih (semua jika tidak ada yang dipilih)"
+"Transpose up (the selected notes, a semitone)" = "Transpos naik (not yang dipilih, satu semitone)"
+"Transpose down (the selected notes, a semitone)" = "Transpos turun (not yang dipilih, satu semitone)"
+"Transpose one octave up (the selected notes)" = "Transpos naik satu oktaf (not yang dipilih)"
+"Transpose one octave down (the selected notes)" = "Transpos turun satu oktaf (not yang dipilih)"
+"Shift left (the selected notes, one grid step)" = "Geser ke kiri (not yang dipilih, satu langkah grid)"
+"Shift right (the selected notes, one grid step)" = "Geser ke kanan (not yang dipilih, satu langkah grid)"
+"Select all (clips and time)" = "Pilih semua (klip dan waktu)"
+"Copy the selected clips" = "Salin klip yang dipilih"
+"Cut the selected clips" = "Potong klip yang dipilih"
+"Paste clips" = "Tempel klip"
+"Duplicate the selected clips (to the right)" = "Gandakan klip yang dipilih (ke kanan)"
+"Transpose a semitone / move by the grid" = "Transpos satu semitone / geser mengikuti grid"
+"Transpose an octave" = "Transpos satu oktaf"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Keyboard ketik sebagai piano aktif/nonaktif (saat Playlist atau Piano roll fokus: penanda waktu, seperti di FL)"
+"Selector" = "Pemilih"

+ 23 - 0
resources/i18n/it.txt

@@ -13175,3 +13175,26 @@ countries: it ch sm
 "Continuous scrolling" = "Scorrimento continuo"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Sostituisce il campione di {0} con {1}: clip, insert ed effetti restano  [Shift] nuova clip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Un campione rilasciato su una clip di pattern non fa nulla, come in FL Studio  [Shift] nuova clip"
+"Copy the selected notes" = "Copia le note selezionate"
+"Cut the selected notes (all when none is selected)" = "Taglia le note selezionate (tutte se nessuna è selezionata)"
+"Paste notes" = "Incolla note"
+"Duplicate the selected notes (to the right)" = "Duplica le note selezionate (a destra)"
+"Portamento on/off (the selected notes)" = "Portamento attivo/disattivo (le note selezionate)"
+"Deselect (notes and time)" = "Deseleziona (note e tempo)"
+"Mute the selected notes (all when none is selected)" = "Silenzia le note selezionate (tutte se nessuna è selezionata)"
+"Unmute the selected notes (all when none is selected)" = "Riattiva le note selezionate (tutte se nessuna è selezionata)"
+"Transpose up (the selected notes, a semitone)" = "Trasponi in su (le note selezionate, un semitono)"
+"Transpose down (the selected notes, a semitone)" = "Trasponi in giù (le note selezionate, un semitono)"
+"Transpose one octave up (the selected notes)" = "Trasponi di un'ottava in su (le note selezionate)"
+"Transpose one octave down (the selected notes)" = "Trasponi di un'ottava in giù (le note selezionate)"
+"Shift left (the selected notes, one grid step)" = "Sposta a sinistra (le note selezionate, un passo della griglia)"
+"Shift right (the selected notes, one grid step)" = "Sposta a destra (le note selezionate, un passo della griglia)"
+"Select all (clips and time)" = "Seleziona tutto (clip e tempo)"
+"Copy the selected clips" = "Copia le clip selezionate"
+"Cut the selected clips" = "Taglia le clip selezionate"
+"Paste clips" = "Incolla clip"
+"Duplicate the selected clips (to the right)" = "Duplica le clip selezionate (a destra)"
+"Transpose a semitone / move by the grid" = "Trasponi di un semitono / sposta lungo la griglia"
+"Transpose an octave" = "Trasponi di un'ottava"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Tastiera del computer come pianoforte attiva/disattiva (con la Playlist o il Piano roll in primo piano: un marcatore di tempo, come in FL)"
+"Selector" = "Selettore"

+ 23 - 0
resources/i18n/ja.txt

@@ -13175,3 +13175,26 @@ countries: jp
 "Continuous scrolling" = "連続スクロール"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "{0} のサンプルを {1} に置き換え:クリップ、インサート、エフェクトはそのまま  [Shift] 新しいクリップ"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "パターンクリップにドロップしたサンプルは何もしません(FL Studio と同じ)  [Shift] 新しいクリップ"
+"Copy the selected notes" = "選択したノートをコピー"
+"Cut the selected notes (all when none is selected)" = "選択したノートを切り取り(選択がなければすべて)"
+"Paste notes" = "ノートを貼り付け"
+"Duplicate the selected notes (to the right)" = "選択したノートを複製(右へ)"
+"Portamento on/off (the selected notes)" = "ポルタメントのオン/オフ(選択したノート)"
+"Deselect (notes and time)" = "選択解除(ノートと時間)"
+"Mute the selected notes (all when none is selected)" = "選択したノートをミュート(選択がなければすべて)"
+"Unmute the selected notes (all when none is selected)" = "選択したノートのミュートを解除(選択がなければすべて)"
+"Transpose up (the selected notes, a semitone)" = "上へ移調(選択したノート、半音)"
+"Transpose down (the selected notes, a semitone)" = "下へ移調(選択したノート、半音)"
+"Transpose one octave up (the selected notes)" = "1オクターブ上へ移調(選択したノート)"
+"Transpose one octave down (the selected notes)" = "1オクターブ下へ移調(選択したノート)"
+"Shift left (the selected notes, one grid step)" = "左へ移動(選択したノート、グリッド1つ分)"
+"Shift right (the selected notes, one grid step)" = "右へ移動(選択したノート、グリッド1つ分)"
+"Select all (clips and time)" = "すべて選択(クリップと時間)"
+"Copy the selected clips" = "選択したクリップをコピー"
+"Cut the selected clips" = "選択したクリップを切り取り"
+"Paste clips" = "クリップを貼り付け"
+"Duplicate the selected clips (to the right)" = "選択したクリップを複製(右へ)"
+"Transpose a semitone / move by the grid" = "半音移調 / グリッド単位で移動"
+"Transpose an octave" = "1オクターブ移調"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "タイピングキーボードをピアノとして使う オン/オフ(Playlist または Piano roll にフォーカスがあるとき: FL と同じく時間マーカー)"
+"Selector" = "セレクター"

+ 23 - 0
resources/i18n/ko.txt

@@ -13175,3 +13175,26 @@ countries: kr
 "Continuous scrolling" = "연속 스크롤"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "{0}의 샘플을 {1}(으)로 교체: 클립, 인서트, 이펙트는 유지  [Shift] 새 클립"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "패턴 클립에 놓은 샘플은 아무 동작도 하지 않습니다(FL Studio와 동일)  [Shift] 새 클립"
+"Copy the selected notes" = "선택한 노트 복사"
+"Cut the selected notes (all when none is selected)" = "선택한 노트 잘라내기 (선택이 없으면 전부)"
+"Paste notes" = "노트 붙여넣기"
+"Duplicate the selected notes (to the right)" = "선택한 노트 복제 (오른쪽으로)"
+"Portamento on/off (the selected notes)" = "포르타멘토 켜기/끄기 (선택한 노트)"
+"Deselect (notes and time)" = "선택 해제 (노트와 시간)"
+"Mute the selected notes (all when none is selected)" = "선택한 노트 음소거 (선택이 없으면 전부)"
+"Unmute the selected notes (all when none is selected)" = "선택한 노트 음소거 해제 (선택이 없으면 전부)"
+"Transpose up (the selected notes, a semitone)" = "위로 조옮김 (선택한 노트, 반음)"
+"Transpose down (the selected notes, a semitone)" = "아래로 조옮김 (선택한 노트, 반음)"
+"Transpose one octave up (the selected notes)" = "한 옥타브 위로 조옮김 (선택한 노트)"
+"Transpose one octave down (the selected notes)" = "한 옥타브 아래로 조옮김 (선택한 노트)"
+"Shift left (the selected notes, one grid step)" = "왼쪽으로 이동 (선택한 노트, 그리드 한 칸)"
+"Shift right (the selected notes, one grid step)" = "오른쪽으로 이동 (선택한 노트, 그리드 한 칸)"
+"Select all (clips and time)" = "모두 선택 (클립과 시간)"
+"Copy the selected clips" = "선택한 클립 복사"
+"Cut the selected clips" = "선택한 클립 잘라내기"
+"Paste clips" = "클립 붙여넣기"
+"Duplicate the selected clips (to the right)" = "선택한 클립 복제 (오른쪽으로)"
+"Transpose a semitone / move by the grid" = "반음 조옮김 / 그리드 단위로 이동"
+"Transpose an octave" = "한 옥타브 조옮김"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "타이핑 키보드를 피아노로 켜기/끄기 (Playlist나 Piano roll에 포커스가 있으면: FL처럼 시간 마커)"
+"Selector" = "선택기"

+ 23 - 0
resources/i18n/nl.txt

@@ -13175,3 +13175,26 @@ countries: nl be
 "Continuous scrolling" = "Continu scrollen"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Vervangt de sample van {0} door {1}: clips, insert en effecten blijven  [Shift] nieuwe clip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Een sample op een patroonclip losgelaten doet niets, zoals in FL Studio  [Shift] nieuwe clip"
+"Copy the selected notes" = "Geselecteerde noten kopiëren"
+"Cut the selected notes (all when none is selected)" = "Geselecteerde noten knippen (alle als er niets geselecteerd is)"
+"Paste notes" = "Noten plakken"
+"Duplicate the selected notes (to the right)" = "Geselecteerde noten dupliceren (naar rechts)"
+"Portamento on/off (the selected notes)" = "Portamento aan/uit (de geselecteerde noten)"
+"Deselect (notes and time)" = "Selectie opheffen (noten en tijd)"
+"Mute the selected notes (all when none is selected)" = "Geselecteerde noten dempen (alle als er niets geselecteerd is)"
+"Unmute the selected notes (all when none is selected)" = "Demping van geselecteerde noten opheffen (alle als er niets geselecteerd is)"
+"Transpose up (the selected notes, a semitone)" = "Omhoog transponeren (de geselecteerde noten, een halve toon)"
+"Transpose down (the selected notes, a semitone)" = "Omlaag transponeren (de geselecteerde noten, een halve toon)"
+"Transpose one octave up (the selected notes)" = "Een octaaf omhoog transponeren (de geselecteerde noten)"
+"Transpose one octave down (the selected notes)" = "Een octaaf omlaag transponeren (de geselecteerde noten)"
+"Shift left (the selected notes, one grid step)" = "Naar links schuiven (de geselecteerde noten, één rasterstap)"
+"Shift right (the selected notes, one grid step)" = "Naar rechts schuiven (de geselecteerde noten, één rasterstap)"
+"Select all (clips and time)" = "Alles selecteren (clips en tijd)"
+"Copy the selected clips" = "Geselecteerde clips kopiëren"
+"Cut the selected clips" = "Geselecteerde clips knippen"
+"Paste clips" = "Clips plakken"
+"Duplicate the selected clips (to the right)" = "Geselecteerde clips dupliceren (naar rechts)"
+"Transpose a semitone / move by the grid" = "Een halve toon transponeren / verschuiven op het raster"
+"Transpose an octave" = "Een octaaf transponeren"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Typtoetsenbord als piano aan/uit (met de Playlist of Piano roll in focus: een tijdmarkering, zoals in FL)"
+"Selector" = "Keuzeschakelaar"

+ 23 - 0
resources/i18n/pl.txt

@@ -13175,3 +13175,26 @@ countries: pl
 "Continuous scrolling" = "Ciągłe przewijanie"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Zastępuje sampel {0} plikiem {1}: klipy, insert i efekty zostają  [Shift] nowy klip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Sampel upuszczony na klip patternu nic nie robi, jak w FL Studio  [Shift] nowy klip"
+"Copy the selected notes" = "Kopiuj zaznaczone nuty"
+"Cut the selected notes (all when none is selected)" = "Wytnij zaznaczone nuty (wszystkie, gdy nic nie jest zaznaczone)"
+"Paste notes" = "Wklej nuty"
+"Duplicate the selected notes (to the right)" = "Powiel zaznaczone nuty (w prawo)"
+"Portamento on/off (the selected notes)" = "Portamento wł./wył. (zaznaczone nuty)"
+"Deselect (notes and time)" = "Odznacz (nuty i czas)"
+"Mute the selected notes (all when none is selected)" = "Wycisz zaznaczone nuty (wszystkie, gdy nic nie jest zaznaczone)"
+"Unmute the selected notes (all when none is selected)" = "Wyłącz wyciszenie zaznaczonych nut (wszystkich, gdy nic nie jest zaznaczone)"
+"Transpose up (the selected notes, a semitone)" = "Transponuj w górę (zaznaczone nuty, o półton)"
+"Transpose down (the selected notes, a semitone)" = "Transponuj w dół (zaznaczone nuty, o półton)"
+"Transpose one octave up (the selected notes)" = "Transponuj o oktawę w górę (zaznaczone nuty)"
+"Transpose one octave down (the selected notes)" = "Transponuj o oktawę w dół (zaznaczone nuty)"
+"Shift left (the selected notes, one grid step)" = "Przesuń w lewo (zaznaczone nuty, o krok siatki)"
+"Shift right (the selected notes, one grid step)" = "Przesuń w prawo (zaznaczone nuty, o krok siatki)"
+"Select all (clips and time)" = "Zaznacz wszystko (klipy i czas)"
+"Copy the selected clips" = "Kopiuj zaznaczone klipy"
+"Cut the selected clips" = "Wytnij zaznaczone klipy"
+"Paste clips" = "Wklej klipy"
+"Duplicate the selected clips (to the right)" = "Powiel zaznaczone klipy (w prawo)"
+"Transpose a semitone / move by the grid" = "Transponuj o półton / przesuń po siatce"
+"Transpose an octave" = "Transponuj o oktawę"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Klawiatura jako pianino wł./wył. (gdy aktywna jest Playlist lub Piano roll: znacznik czasu, jak w FL)"
+"Selector" = "Selektor"

+ 23 - 0
resources/i18n/pt-BR.txt

@@ -13328,3 +13328,26 @@ countries: br
 "Continuous scrolling" = "Rolagem contínua"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Substitui o sample de {0} por {1}: os clipes, o insert e os efeitos ficam  [Shift] novo clipe"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Um sample solto num clipe de pattern não faz nada, como no FL Studio  [Shift] novo clipe"
+"Copy the selected notes" = "Copiar as notas selecionadas"
+"Cut the selected notes (all when none is selected)" = "Recortar as notas selecionadas (todas, se nenhuma estiver selecionada)"
+"Paste notes" = "Colar notas"
+"Duplicate the selected notes (to the right)" = "Duplicar as notas selecionadas (à direita)"
+"Portamento on/off (the selected notes)" = "Portamento ligado/desligado (as notas selecionadas)"
+"Deselect (notes and time)" = "Desmarcar (notas e tempo)"
+"Mute the selected notes (all when none is selected)" = "Silenciar as notas selecionadas (todas, se nenhuma estiver selecionada)"
+"Unmute the selected notes (all when none is selected)" = "Reativar o som das notas selecionadas (todas, se nenhuma estiver selecionada)"
+"Transpose up (the selected notes, a semitone)" = "Transpor para cima (as notas selecionadas, um semitom)"
+"Transpose down (the selected notes, a semitone)" = "Transpor para baixo (as notas selecionadas, um semitom)"
+"Transpose one octave up (the selected notes)" = "Transpor uma oitava acima (as notas selecionadas)"
+"Transpose one octave down (the selected notes)" = "Transpor uma oitava abaixo (as notas selecionadas)"
+"Shift left (the selected notes, one grid step)" = "Mover para a esquerda (as notas selecionadas, um passo da grade)"
+"Shift right (the selected notes, one grid step)" = "Mover para a direita (as notas selecionadas, um passo da grade)"
+"Select all (clips and time)" = "Selecionar tudo (clipes e tempo)"
+"Copy the selected clips" = "Copiar os clipes selecionados"
+"Cut the selected clips" = "Recortar os clipes selecionados"
+"Paste clips" = "Colar clipes"
+"Duplicate the selected clips (to the right)" = "Duplicar os clipes selecionados (à direita)"
+"Transpose a semitone / move by the grid" = "Transpor um semitom / mover pela grade"
+"Transpose an octave" = "Transpor uma oitava"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Teclado de digitação como piano ligado/desligado (com a Playlist ou o Piano roll em foco: um marcador de tempo, como no FL)"
+"Selector" = "Seletor"

+ 23 - 0
resources/i18n/ru.txt

@@ -13175,3 +13175,26 @@ countries: ru by kz
 "Continuous scrolling" = "Непрерывная прокрутка"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "Заменяет сэмпл {0} на {1}: клипы, инсерт и эффекты остаются  [Shift] новый клип"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Сэмпл, брошенный на клип паттерна, ничего не делает, как в FL Studio  [Shift] новый клип"
+"Copy the selected notes" = "Копировать выделенные ноты"
+"Cut the selected notes (all when none is selected)" = "Вырезать выделенные ноты (все, если ничего не выделено)"
+"Paste notes" = "Вставить ноты"
+"Duplicate the selected notes (to the right)" = "Дублировать выделенные ноты (вправо)"
+"Portamento on/off (the selected notes)" = "Портаменто вкл./выкл. (выделенные ноты)"
+"Deselect (notes and time)" = "Снять выделение (ноты и время)"
+"Mute the selected notes (all when none is selected)" = "Заглушить выделенные ноты (все, если ничего не выделено)"
+"Unmute the selected notes (all when none is selected)" = "Включить выделенные ноты (все, если ничего не выделено)"
+"Transpose up (the selected notes, a semitone)" = "Транспонировать вверх (выделенные ноты, на полутон)"
+"Transpose down (the selected notes, a semitone)" = "Транспонировать вниз (выделенные ноты, на полутон)"
+"Transpose one octave up (the selected notes)" = "Транспонировать на октаву вверх (выделенные ноты)"
+"Transpose one octave down (the selected notes)" = "Транспонировать на октаву вниз (выделенные ноты)"
+"Shift left (the selected notes, one grid step)" = "Сдвинуть влево (выделенные ноты, на шаг сетки)"
+"Shift right (the selected notes, one grid step)" = "Сдвинуть вправо (выделенные ноты, на шаг сетки)"
+"Select all (clips and time)" = "Выделить всё (клипы и время)"
+"Copy the selected clips" = "Копировать выделенные клипы"
+"Cut the selected clips" = "Вырезать выделенные клипы"
+"Paste clips" = "Вставить клипы"
+"Duplicate the selected clips (to the right)" = "Дублировать выделенные клипы (вправо)"
+"Transpose a semitone / move by the grid" = "Транспонировать на полутон / сдвинуть по сетке"
+"Transpose an octave" = "Транспонировать на октаву"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Клавиатура как пианино вкл./выкл. (когда в фокусе Playlist или Piano roll: маркер времени, как в FL)"
+"Selector" = "Селектор"

+ 23 - 0
resources/i18n/tr.txt

@@ -13175,3 +13175,26 @@ countries: tr
 "Continuous scrolling" = "Sürekli kaydırma"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "{0} örneğini {1} ile değiştirir: klipleri, insert ve efektler kalır  [Shift] yeni klip"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "Bir pattern klibine bırakılan örnek hiçbir şey yapmaz, FL Studio'daki gibi  [Shift] yeni klip"
+"Copy the selected notes" = "Seçili notaları kopyala"
+"Cut the selected notes (all when none is selected)" = "Seçili notaları kes (hiçbiri seçili değilse hepsini)"
+"Paste notes" = "Notaları yapıştır"
+"Duplicate the selected notes (to the right)" = "Seçili notaları çoğalt (sağa)"
+"Portamento on/off (the selected notes)" = "Portamento açık/kapalı (seçili notalar)"
+"Deselect (notes and time)" = "Seçimi kaldır (notalar ve zaman)"
+"Mute the selected notes (all when none is selected)" = "Seçili notaları sustur (hiçbiri seçili değilse hepsini)"
+"Unmute the selected notes (all when none is selected)" = "Seçili notaların susturmasını kaldır (hiçbiri seçili değilse hepsinin)"
+"Transpose up (the selected notes, a semitone)" = "Yukarı transpoze et (seçili notalar, yarım ton)"
+"Transpose down (the selected notes, a semitone)" = "Aşağı transpoze et (seçili notalar, yarım ton)"
+"Transpose one octave up (the selected notes)" = "Bir oktav yukarı transpoze et (seçili notalar)"
+"Transpose one octave down (the selected notes)" = "Bir oktav aşağı transpoze et (seçili notalar)"
+"Shift left (the selected notes, one grid step)" = "Sola kaydır (seçili notalar, bir ızgara adımı)"
+"Shift right (the selected notes, one grid step)" = "Sağa kaydır (seçili notalar, bir ızgara adımı)"
+"Select all (clips and time)" = "Tümünü seç (klipler ve zaman)"
+"Copy the selected clips" = "Seçili klipleri kopyala"
+"Cut the selected clips" = "Seçili klipleri kes"
+"Paste clips" = "Klipleri yapıştır"
+"Duplicate the selected clips (to the right)" = "Seçili klipleri çoğalt (sağa)"
+"Transpose a semitone / move by the grid" = "Yarım ton transpoze et / ızgarada taşı"
+"Transpose an octave" = "Bir oktav transpoze et"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "Yazı klavyesini piyano olarak kullan açık/kapalı (Playlist veya Piano roll odaktayken: FL'deki gibi bir zaman işaretçisi)"
+"Selector" = "Seçici"

+ 23 - 0
resources/i18n/zh-Hans.txt

@@ -13175,3 +13175,26 @@ countries: cn sg
 "Continuous scrolling" = "连续滚动"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "将 {0} 的采样替换为 {1}:其片段、插入轨和效果保留  [Shift] 新片段"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "拖到模式片段上的采样不起作用,与 FL Studio 相同  [Shift] 新片段"
+"Copy the selected notes" = "复制所选音符"
+"Cut the selected notes (all when none is selected)" = "剪切所选音符(未选择时为全部)"
+"Paste notes" = "粘贴音符"
+"Duplicate the selected notes (to the right)" = "复制所选音符(向右)"
+"Portamento on/off (the selected notes)" = "滑音开/关(所选音符)"
+"Deselect (notes and time)" = "取消选择(音符和时间)"
+"Mute the selected notes (all when none is selected)" = "静音所选音符(未选择时为全部)"
+"Unmute the selected notes (all when none is selected)" = "取消所选音符的静音(未选择时为全部)"
+"Transpose up (the selected notes, a semitone)" = "向上移调(所选音符,一个半音)"
+"Transpose down (the selected notes, a semitone)" = "向下移调(所选音符,一个半音)"
+"Transpose one octave up (the selected notes)" = "向上移调一个八度(所选音符)"
+"Transpose one octave down (the selected notes)" = "向下移调一个八度(所选音符)"
+"Shift left (the selected notes, one grid step)" = "左移(所选音符,一个网格步长)"
+"Shift right (the selected notes, one grid step)" = "右移(所选音符,一个网格步长)"
+"Select all (clips and time)" = "全选(片段和时间)"
+"Copy the selected clips" = "复制所选片段"
+"Cut the selected clips" = "剪切所选片段"
+"Paste clips" = "粘贴片段"
+"Duplicate the selected clips (to the right)" = "复制所选片段(向右)"
+"Transpose a semitone / move by the grid" = "移调一个半音 / 按网格移动"
+"Transpose an octave" = "移调一个八度"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "电脑键盘作为钢琴 开/关(Playlist 或 Piano roll 获得焦点时:与 FL 一样添加时间标记)"
+"Selector" = "选择器"

+ 23 - 0
resources/i18n/zh-Hant.txt

@@ -13175,3 +13175,26 @@ countries: tw hk mo
 "Continuous scrolling" = "連續捲動"
 "Replaces the sample of {0} with {1}: its clips, insert and effects stay  [Shift] new clip" = "將 {0} 的取樣替換為 {1}:其片段、插入軌和效果保留  [Shift] 新片段"
 "A sample dropped on a pattern clip does nothing, as in FL Studio  [Shift] new clip" = "拖到模式片段上的取樣不起作用,與 FL Studio 相同  [Shift] 新片段"
+"Copy the selected notes" = "複製所選音符"
+"Cut the selected notes (all when none is selected)" = "剪下所選音符(未選取時為全部)"
+"Paste notes" = "貼上音符"
+"Duplicate the selected notes (to the right)" = "複製所選音符(向右)"
+"Portamento on/off (the selected notes)" = "滑音開/關(所選音符)"
+"Deselect (notes and time)" = "取消選取(音符與時間)"
+"Mute the selected notes (all when none is selected)" = "靜音所選音符(未選取時為全部)"
+"Unmute the selected notes (all when none is selected)" = "取消所選音符的靜音(未選取時為全部)"
+"Transpose up (the selected notes, a semitone)" = "向上移調(所選音符,一個半音)"
+"Transpose down (the selected notes, a semitone)" = "向下移調(所選音符,一個半音)"
+"Transpose one octave up (the selected notes)" = "向上移調一個八度(所選音符)"
+"Transpose one octave down (the selected notes)" = "向下移調一個八度(所選音符)"
+"Shift left (the selected notes, one grid step)" = "左移(所選音符,一個網格步長)"
+"Shift right (the selected notes, one grid step)" = "右移(所選音符,一個網格步長)"
+"Select all (clips and time)" = "全選(片段與時間)"
+"Copy the selected clips" = "複製所選片段"
+"Cut the selected clips" = "剪下所選片段"
+"Paste clips" = "貼上片段"
+"Duplicate the selected clips (to the right)" = "複製所選片段(向右)"
+"Transpose a semitone / move by the grid" = "移調一個半音 / 依網格移動"
+"Transpose an octave" = "移調一個八度"
+"Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)" = "電腦鍵盤當作鋼琴 開/關(Playlist 或 Piano roll 取得焦點時:與 FL 相同,加入時間標記)"
+"Selector" = "選擇器"

+ 471 - 0
src/KeySheetCheck190sj.inc

@@ -0,0 +1,471 @@
+    // Round 190sj (issue #327, 0.1.32). Included in the app class of Main.cpp; --keysheet190sjtest <report> and --selftest
+    // "keysheet190sj". Every key of the F1 shortcut sheet (keys::sheet::rows) is pressed in the main window
+    // (MainComponent::keyPressed, as a key the system delivers) with the panel it belongs to focused, the typing keyboard off
+    // and on: the action the key map gives it there must be the one that runs (seen by MainComponent::actionFilterForCheck,
+    // which keeps file choosers and dialogs from opening). A General key is pressed with every panel focused; where a panel
+    // has its own action on it (FL's Ctrl+T in the Playlist and the Piano roll: Add auto marker) that one must run. Then the
+    // keys the issue named do what they say, a remapped key moves with its action, and the sheet shows the remapped key.
+    juce::String keySheet190sjCheck (juce::String& log)
+    {
+        using namespace lynx;
+        using Panel = workspace::Panel;
+        juce::String result = "OK";
+        const auto check = [&] (const juce::String& what, bool ok, const juce::String& detail = {}) {
+            log << (ok ? "ok   " : "FAIL ") << what << (detail.isNotEmpty() ? "  [" + detail + "]" : juce::String()) << "\n";
+            if (! ok && result == "OK")
+                result = "ERROR " + what + " " + detail;
+        };
+        struct Keep
+        {
+            layoutstyle::Style was = layoutstyle::current();
+            ~Keep()
+            {
+                layoutstyle::setCurrent (was);
+                MainComponent::actionFilterForCheck = nullptr;
+            }
+        } keep;
+
+        AudioEngine offline (false);
+        MainComponent ui (offline, false);
+        ui.setSize (1600, 900);
+        ui.setLayoutStyle (layoutstyle::Style::pattern);
+        const auto settle = [&] {
+            for (int k = 0; k < 3; ++k)
+                offline.dispatchPendingMessages();
+        };
+        settle();
+        ui.showPanelsForSnapshot ({ Panel::playlist, Panel::channelRack, Panel::pianoRoll, Panel::mixer, Panel::browser });
+        settle();
+        const auto focus = [&] (Panel p) {
+            ui.workspaceForTest().activate (p);
+            settle();
+        };
+        // a key as JUCE hands it over: letters by their upper-case code, the others by JUCE's key codes
+        const auto keyPressOf = [] (const keys::Chord& c) {
+            int code = c.key;
+            struct Pair { int key, juce; };
+            static const Pair specials[] = {
+                { keys::space, juce::KeyPress::spaceKey }, { keys::enter, juce::KeyPress::returnKey }, { keys::escape, juce::KeyPress::escapeKey },
+                { keys::tab, juce::KeyPress::tabKey }, { keys::backspace, juce::KeyPress::backspaceKey }, { keys::del, juce::KeyPress::deleteKey },
+                { keys::insert, juce::KeyPress::insertKey }, { keys::up, juce::KeyPress::upKey }, { keys::down, juce::KeyPress::downKey },
+                { keys::left, juce::KeyPress::leftKey }, { keys::right, juce::KeyPress::rightKey }, { keys::pageUp, juce::KeyPress::pageUpKey },
+                { keys::pageDown, juce::KeyPress::pageDownKey }, { keys::home, juce::KeyPress::homeKey }, { keys::end, juce::KeyPress::endKey },
+                { keys::numpadPlus, juce::KeyPress::numberPadAdd }, { keys::numpadMinus, juce::KeyPress::numberPadSubtract },
+                { keys::numpadMultiply, juce::KeyPress::numberPadMultiply }, { keys::numpadDivide, juce::KeyPress::numberPadDivide },
+            };
+            for (const auto& p : specials)
+                if (p.key == c.key)
+                    code = p.juce;
+            if (c.key >= keys::f1 && c.key <= keys::f12)
+                code = juce::KeyPress::F1Key + (c.key - keys::f1);
+            const auto mods = ((c.mods & keys::ctrl) ? juce::ModifierKeys::commandModifier : 0) | ((c.mods & keys::shift) ? juce::ModifierKeys::shiftModifier : 0)
+                            | ((c.mods & keys::alt) ? juce::ModifierKeys::altModifier : 0);
+            const auto character = c.key > ' ' && c.key < 0x7f && (c.mods & (keys::ctrl | keys::alt)) == 0 ? (juce::juce_wchar) c.key : (juce::juce_wchar) 0;
+            return juce::KeyPress (code, juce::ModifierKeys (mods), character);
+        };
+        const auto contextOf = [] (Panel p) {
+            return p == Panel::playlist ? keys::Context::playlist : p == Panel::channelRack ? keys::Context::channelRack
+                 : p == Panel::pianoRoll ? keys::Context::pianoRoll : p == Panel::mixer ? keys::Context::mixer : keys::Context::browser;
+        };
+        const auto panelName = [] (Panel p) {
+            return juce::String (p == Panel::playlist ? "Playlist" : p == Panel::channelRack ? "Channel rack" : p == Panel::pianoRoll ? "Piano roll"
+                                 : p == Panel::mixer ? "Mixer" : "Browser");
+        };
+        const auto& map = ui.getKeyMapForSnapshot();
+
+        // 1. every key of the sheet, dry (the action is seen, not run)
+        std::vector<std::string> ran;
+        MainComponent::actionFilterForCheck = [&ran] (const std::string& id) {
+            ran.push_back (id);
+            return false;
+        };
+        int pressed = 0, rowsWithKeys = 0;
+        std::set<std::string> panelOwn; // a General key that a focused panel uses for its own action
+        for (const auto piano : { false, true })
+        {
+            ui.setTypingPianoForTest (piano);
+            for (const auto& row : keys::sheet::rows())
+            {
+                if (row.actions.empty())
+                {
+                    check (juce::String ("a row without keys is a mouse row: ") + row.gesture, juce::String (row.gesture).isNotEmpty());
+                    continue;
+                }
+                ++rowsWithKeys;
+                const auto ctx = keys::sheet::sectionContext (row.section);
+                for (const auto& id : keys::sheet::shownActions (row, map))
+                {
+                    const auto* action = keys::findAction (id);
+                    check (juce::String ("the sheet's action exists: ") + id, action != nullptr);
+                    if (action == nullptr)
+                        continue;
+                    check (juce::String (id) + " has a key", ! map.chordsFor (id).empty());
+                    check (juce::String (id) + " belongs to its section's panel", action->context == ctx || action->context == keys::Context::global);
+                    const auto panels = action->context == keys::Context::global
+                                            ? std::vector<Panel> { Panel::channelRack, Panel::mixer, Panel::browser, Panel::playlist, Panel::pianoRoll }
+                                            : std::vector<Panel> { action->context == keys::Context::pianoRoll ? Panel::pianoRoll
+                                                                   : action->context == keys::Context::playlist ? Panel::playlist : Panel::channelRack };
+                    for (const auto& chord : map.chordsFor (id))
+                    {
+                        // the typing keyboard on: a plain letter / digit is its (a note, or nothing), unless the action works then
+                        const auto plain = (chord.mods & (keys::ctrl | keys::alt | keys::shift)) == 0 && chord.isPrintable();
+                        if (piano && plain && (! action->whilePiano || keys::typingPianoKey (chord.key, keys::typingpiano::defaultOctave, 0, keys::typingpiano::pianoLayout()).taken))
+                            continue;
+                        for (const auto p : panels)
+                        {
+                            focus (p);
+                            const auto expected = map.find (chord, contextOf (p), piano);
+                            ran.clear();
+                            ui.keyPressed (keyPressOf (chord));
+                            settle();
+                            ++pressed;
+                            const auto got = ran.empty() ? std::string ("(nothing)") : ran.front();
+                            const auto what = juce::String (keys::toString (chord)) + " (" + id + "), " + panelName (p) + " focused, typing keyboard "
+                                              + (piano ? "on" : "off");
+                            check (what + " runs " + expected, got == expected, got);
+                            if (expected != id)
+                            {
+                                log << "     (that panel's own key: " << expected << ")\n";
+                                panelOwn.insert (id + " @ " + panelName (p).toStdString() + " = " + expected);
+                            }
+                        }
+                    }
+                }
+            }
+        }
+        MainComponent::actionFilterForCheck = nullptr;
+        log << "  " << pressed << " key presses, " << rowsWithKeys << " rows with keys\n";
+        // the General keys a panel keeps for itself, all FL's: Ctrl+T in the Playlist / Piano roll (Add auto marker, REA 168t2),
+        // Ctrl+Shift+S in the Mixer (Save the mixer track state), Enter in the Browser (load the selected file)
+        {
+            const std::set<std::string> known { "view.typingPiano @ Playlist = playlist.markerAuto", "view.typingPiano @ Piano roll = pianoRoll.markerAuto",
+                                                "file.saveAs @ Mixer = mixer.saveTrackState", "panel.maximisePlaylist @ Browser = browser.load" };
+            juce::String got;
+            for (const auto& k : panelOwn)
+                got << k << "; ";
+            check ("the General keys a panel takes for itself are FL's (and only those)", panelOwn == known, got);
+        }
+
+        // 2. what the issue named, run for real
+        ui.setTypingPianoForTest (false);
+        for (const auto p : { Panel::channelRack, Panel::mixer, Panel::browser })
+        {
+            focus (p);
+            ui.keyPressed (juce::KeyPress ('T', juce::ModifierKeys::commandModifier, 0));
+            settle();
+            check ("Ctrl+T switches the typing keyboard on, " + panelName (p) + " focused", ui.typingPianoForCheck());
+            ui.keyPressed (juce::KeyPress ('T', juce::ModifierKeys::commandModifier, 0));
+            settle();
+            check ("Ctrl+T switches it off again, " + panelName (p) + " focused", ! ui.typingPianoForCheck());
+        }
+        {
+            focus (Panel::playlist);
+            const auto markers = offline.getSong().markers().size();
+            ui.keyPressed (juce::KeyPress ('T', juce::ModifierKeys::commandModifier, 0));
+            settle();
+            check ("Ctrl+T with the Playlist focused adds an Auto time marker, as FL (REA 168t2)",
+                   offline.getSong().markers().size() == markers + 1 && ! ui.typingPianoForCheck());
+        }
+        const auto channel = offline.getSelectedChannel();
+        offline.editSong ([channel] (Song& s) {
+            auto& pat = s.patterns[(std::size_t) s.currentPattern];
+            pat.notes.clear();
+            for (int i = 0; i < 3; ++i)
+            {
+                Note n;
+                n.channel = channel;
+                n.key = 60 + 2 * i;
+                n.start = i * ppq;
+                n.length = ppq / 2;
+                pat.notes.push_back (n);
+            }
+        });
+        settle();
+        focus (Panel::pianoRoll);
+        auto& roll = ui.getPianoRollForSnapshot();
+        const auto firstKey = [&] { return offline.getSong().patterns[(std::size_t) offline.getSong().currentPattern].notes.front().key; };
+        const auto firstStart = [&] { return offline.getSong().patterns[(std::size_t) offline.getSong().currentPattern].notes.front().start; };
+        ui.keyPressed (juce::KeyPress ('A', juce::ModifierKeys::commandModifier, 0));
+        settle();
+        check ("Piano roll: Ctrl+A selects every note", roll.selectionForTests().size() == 3, juce::String ((int) roll.selectionForTests().size()));
+        struct Move
+        {
+            const char* name;
+            int code, mods, keys, steps;
+        };
+        const auto cmd = juce::ModifierKeys::commandModifier, shift = juce::ModifierKeys::shiftModifier;
+        for (const auto& m : { Move { "Shift+Up", juce::KeyPress::upKey, shift, 1, 0 }, Move { "Shift+Down", juce::KeyPress::downKey, shift, -1, 0 },
+                               Move { "Ctrl+Up", juce::KeyPress::upKey, cmd, 12, 0 }, Move { "Ctrl+Down", juce::KeyPress::downKey, cmd, -12, 0 },
+                               Move { "Shift+Right", juce::KeyPress::rightKey, shift, 0, 1 }, Move { "Shift+Left", juce::KeyPress::leftKey, shift, 0, -1 } })
+        {
+            const auto key = firstKey();
+            const auto start = firstStart();
+            ui.keyPressed (juce::KeyPress (m.code, juce::ModifierKeys (m.mods), 0));
+            settle();
+            check (juce::String ("Piano roll: ") + m.name + " moves the selected notes", firstKey() == key + m.keys
+                       && firstStart() == start + m.steps * roll.gridTicksForSnapshot(),
+                   juce::String (key) + " -> " + juce::String (firstKey()));
+        }
+        ui.keyPressed (juce::KeyPress ('D', juce::ModifierKeys::commandModifier, 0));
+        settle();
+        check ("Piano roll: Ctrl+D deselects", roll.selectionForTests().empty());
+        {
+            const auto key = firstKey();
+            ui.keyPressed (juce::KeyPress (juce::KeyPress::upKey, juce::ModifierKeys (shift), 0));
+            settle();
+            check ("Piano roll: Shift+Up with nothing selected moves nothing", firstKey() == key);
+        }
+
+        // 3. remapped: the octave on Alt+Shift+Up, in Manage shortcuts' map; Ctrl+Up no longer moves; the sheet says so
+        ui.keyMapForCheck().setChords ("pianoRoll.octaveUp", { keys::Chord { keys::up, (std::uint8_t) (keys::alt | keys::shift) } });
+        roll.setSelectionForSnapshot ({ 0, 1, 2 });
+        {
+            const auto key = firstKey();
+            ui.keyPressed (juce::KeyPress (juce::KeyPress::upKey, juce::ModifierKeys (cmd), 0));
+            settle();
+            check ("remapped: Ctrl+Up no longer transposes", firstKey() == key);
+            ui.keyPressed (juce::KeyPress (juce::KeyPress::upKey, juce::ModifierKeys (juce::ModifierKeys::altModifier | shift), 0));
+            settle();
+            check ("remapped: Alt+Shift+Up transposes an octave", firstKey() == key + 12);
+            const auto& rows = keys::sheet::rows();
+            const auto octave = std::find_if (rows.begin(), rows.end(), [] (const keys::sheet::Row& r) {
+                return ! r.actions.empty() && r.actions.front() == "pianoRoll.octaveUp";
+            });
+            const auto text = octave == rows.end() ? std::string() : keys::sheet::keysText (*octave, ui.getKeyMapForSnapshot(), modmap::Os::windows);
+            check ("the sheet shows the remapped key", text == "Shift+Alt+Up / Ctrl+Down", text);
+        }
+        ui.keyMapForCheck().resetToDefaults();
+        return result;
+    }
+
+    // --keyroute190sjtest report.txt (round 190sj, issue #327): the same keys as the user presses them, in a window. Each step
+    // clicks as the system would (through the native window under the point) and presses the key where the system sends it
+    // (Windows: posted to the window with the system's focus, the modifiers in the thread's keyboard state; elsewhere the
+    // focused component's native window). Shows a window (Windows: GUI lock).
+    void runKeyRoute190sj (const juce::String& reportPath)
+    {
+        juce::LookAndFeel::setDefaultLookAndFeel (&lookAndFeel);
+
+        struct RouteTest final : juce::Timer
+        {
+            juce::String reportPath, report;
+            bool ok = true;
+            int stepIndex = 0;
+            std::unique_ptr<lynx::AudioEngine> engine;
+            lynx::MainComponent* ui = nullptr;
+            std::unique_ptr<juce::DocumentWindow> main;
+            std::function<void()> done;
+
+            void line (const juce::String& text)
+            {
+                report << text << "\n";
+                juce::File (reportPath).replaceWithText (report);
+            }
+            void check (const juce::String& what, bool passed, const juce::String& detail = {})
+            {
+                line ((passed ? "ok   " : "FAIL ") + what + (detail.isNotEmpty() ? "  [" + detail + "]" : juce::String()));
+                ok = ok && passed;
+            }
+            static juce::String describe (juce::Component* c)
+            {
+                if (c == nullptr)
+                    return "nothing";
+                juce::String path;
+                for (auto* p = c; p != nullptr && path.length() < 160; p = p->getParentComponent())
+                {
+                    auto name = p->getComponentID().isNotEmpty() ? p->getComponentID() : p->getName();
+                    if (name.isEmpty())
+                        name = juce::String (typeid (*p).name()).fromLastOccurrenceOf ("::", false, false).substring (0, 28);
+                    path << (path.isEmpty() ? "" : " < ") << name;
+                }
+                return path;
+            }
+            void click (juce::Component& c, juce::Point<int> local, juce::ModifierKeys mods = {})
+            {
+                auto* peer = c.getPeer();
+                if (peer == nullptr)
+                {
+                    line ("  (no native window for the click)");
+                    return;
+                }
+                const auto at = peer->getComponent().getLocalPoint (&c, local.toFloat());
+                line ("  click at " + local.toString() + " -> " + describe (peer->getComponent().getComponentAt (at.roundToInt())));
+                const auto now = juce::Time::currentTimeMillis();
+                peer->handleMouseEvent (juce::MouseInputSource::InputSourceType::mouse, at, mods.withFlags (juce::ModifierKeys::leftButtonModifier), 1.0f, 0.0f, now);
+                peer->handleMouseEvent (juce::MouseInputSource::InputSourceType::mouse, at, mods, 1.0f, 0.0f, now + 40);
+            }
+            // a key where the system sends it
+            void press (int code, int mods, juce::juce_wchar character = 0)
+            {
+                const juce::ModifierKeys m (mods);
+               #if JUCE_WINDOWS
+                int vk = code;
+                if (code == juce::KeyPress::upKey) vk = 0x26; // (VK_UP)
+                else if (code == juce::KeyPress::downKey) vk = 0x28; // (VK_DOWN)
+                else if (code == juce::KeyPress::leftKey) vk = 0x25; // (VK_LEFT)
+                else if (code == juce::KeyPress::rightKey) vk = 0x27; // (VK_RIGHT)
+                else if (code >= 'a' && code <= 'z') vk = code - 'a' + 'A';
+                if (lynx::nativechild::pressKeyForTest (main->getWindowHandle(), vk, m.isCtrlDown(), m.isShiftDown(), m.isAltDown()))
+                    return;
+               #endif
+                auto* focused = juce::Component::getCurrentlyFocusedComponent();
+                auto* peer = focused != nullptr && focused->getPeer() != nullptr ? focused->getPeer() : main->getPeer();
+                juce::ModifierKeys::currentModifiers = m;
+                if (peer != nullptr)
+                    peer->handleKeyPress (juce::KeyPress (code, m, character));
+                juce::ModifierKeys::currentModifiers = {};
+            }
+            juce::String keysNow() const
+            {
+                juce::String k;
+                const auto& s = engine->getSong();
+                for (const auto& n : s.patterns[(std::size_t) s.currentPattern].notes)
+                    k << n.key << " ";
+                return k.trim();
+            }
+            void transposeCase (const juce::String& after)
+            {
+                auto& roll = ui->getPianoRollForSnapshot();
+                line ("  keys at: " + describe (juce::Component::getCurrentlyFocusedComponent()) + ", panel focus "
+                      + juce::String ((int) ui->workspaceForTest().getFocused()));
+                press ('A', juce::ModifierKeys::commandModifier, 'a');
+                check ("Ctrl+A selects the notes (" + after + ")", roll.selectionForTests().size() == 3, juce::String ((int) roll.selectionForTests().size()));
+                struct Step
+                {
+                    const char* name;
+                    int code, mods, delta;
+                };
+                for (const auto& s : { Step { "Shift+Up", juce::KeyPress::upKey, juce::ModifierKeys::shiftModifier, 1 },
+                                       Step { "Shift+Down", juce::KeyPress::downKey, juce::ModifierKeys::shiftModifier, -1 },
+                                       Step { "Ctrl+Up", juce::KeyPress::upKey, juce::ModifierKeys::commandModifier, 12 },
+                                       Step { "Ctrl+Down", juce::KeyPress::downKey, juce::ModifierKeys::commandModifier, -12 } })
+                {
+                    const auto before = engine->getSong().patterns[(std::size_t) engine->getSong().currentPattern].notes.front().key;
+                    const auto text = keysNow();
+                    press (s.code, s.mods);
+                    const auto now = engine->getSong().patterns[(std::size_t) engine->getSong().currentPattern].notes.front().key;
+                    check (juce::String (s.name) + " moves the selected notes (" + after + ")", now == before + s.delta, text + " -> " + keysNow());
+                }
+            }
+
+            void timerCallback() override
+            {
+                auto& roll = ui->getPianoRollForSnapshot();
+                switch (stepIndex++)
+                {
+                    case 0:
+                    {
+                        ui->setLayoutStyle (lynx::layoutstyle::Style::pattern);
+                        const auto channel = engine->getSelectedChannel();
+                        engine->editSong ([channel] (lynx::Song& s) {
+                            auto& pat = s.patterns[(std::size_t) s.currentPattern];
+                            pat.notes.clear();
+                            for (int i = 0; i < 3; ++i)
+                            {
+                                lynx::Note n;
+                                n.channel = channel;
+                                n.key = 60 + 2 * i;
+                                n.start = i * lynx::ppq;
+                                n.length = lynx::ppq / 2;
+                                pat.notes.push_back (n);
+                            }
+                        });
+                        ui->setTypingPianoForTest (false);
+                        ui->grabKeyboardFocus();
+                        break;
+                    }
+                    case 1:
+                        if (! ui->workspaceForTest().isPanelVisible (lynx::workspace::Panel::pianoRoll))
+                            ui->runActionForSnapshot ("panel.pianoRoll");
+                        break;
+                    case 2:
+                    {
+                        check ("the Piano roll shows", roll.isShowing());
+                        const auto grid = roll.gridAreaForSnapshot();
+                        click (roll, { grid.getRight() - 30, grid.getBottom() - 30 }); // (an empty spot: no note made, Draw tool)
+                        break;
+                    }
+                    case 3:
+                        engine->editSong ([] (lynx::Song& s) { // (the click may have drawn a note: the three are kept)
+                            auto& notes = s.patterns[(std::size_t) s.currentPattern].notes;
+                            if (notes.size() > 3)
+                                notes.resize (3);
+                        });
+                        transposeCase ("after a click in the Piano roll");
+                        break;
+                    case 4:
+                    {
+                        // the Browser's search box clicked, then the Piano roll again
+                        juce::TextEditor* field = nullptr;
+                        std::function<void (juce::Component&)> look = [&] (juce::Component& c) {
+                            if (auto* t = dynamic_cast<juce::TextEditor*> (&c); t != nullptr && t->isShowing() && field == nullptr)
+                                field = t;
+                            for (auto* child : c.getChildren())
+                                look (*child);
+                        };
+                        look (ui->getBrowserForSnapshot());
+                        line ("  Browser search box found=" + juce::String ((int) (field != nullptr)));
+                        if (field != nullptr)
+                            click (*field, field->getLocalBounds().getCentre());
+                        break;
+                    }
+                    case 5:
+                    {
+                        const auto grid = roll.gridAreaForSnapshot();
+                        click (roll, { grid.getRight() - 30, grid.getBottom() - 30 });
+                        break;
+                    }
+                    case 6:
+                        engine->editSong ([] (lynx::Song& s) {
+                            auto& notes = s.patterns[(std::size_t) s.currentPattern].notes;
+                            if (notes.size() > 3)
+                                notes.resize (3);
+                        });
+                        transposeCase ("after a click in the Browser's search box, then the Piano roll");
+                        break;
+                    case 7:
+                    {
+                        // Ctrl+T after a click in each panel
+                        using Panel = lynx::workspace::Panel;
+                        for (const auto p : { Panel::channelRack, Panel::playlist, Panel::pianoRoll })
+                        {
+                            juce::Component* c = p == Panel::pianoRoll ? (juce::Component*) &roll
+                                               : p == Panel::playlist  ? (juce::Component*) &ui->getPlaylistForSnapshot()
+                                                                       : nullptr;
+                            if (p == Panel::channelRack)
+                                ui->workspaceForTest().activate (p);
+                            else if (c != nullptr && c->isShowing())
+                                click (*c, { c->getWidth() - 40, c->getHeight() - 40 });
+                            const auto before = ui->typingPianoForCheck();
+                            const auto markers = engine->getSong().markers().size();
+                            press ('T', juce::ModifierKeys::commandModifier, 't');
+                            line ("  Ctrl+T, panel " + juce::String ((int) p) + " focused (" + juce::String ((int) ui->workspaceForTest().getFocused())
+                                  + "): typing keyboard " + juce::String ((int) before) + " -> " + juce::String ((int) ui->typingPianoForCheck())
+                                  + ", song markers " + juce::String ((int) markers) + " -> " + juce::String ((int) engine->getSong().markers().size()));
+                            if (ui->typingPianoForCheck() != before)
+                                ui->setTypingPianoForTest (before);
+                        }
+                        finish();
+                        break;
+                    }
+                    default:
+                        break;
+                }
+            }
+
+            void finish()
+            {
+                line (ok ? "result=OK" : "result=FAILED");
+                stopTimer();
+                done();
+            }
+        };
+
+        auto* test = new RouteTest();
+        test->reportPath = reportPath;
+        startFocusTestWindow (*test);
+       #if JUCE_WINDOWS
+        test->main->setAlwaysOnTop (true);
+       #endif
+        test->startTimer (700);
+    }

+ 35 - 1
src/Main.cpp

@@ -2378,6 +2378,34 @@ public:
            #endif
             std::_Exit (2); // (not reached when the display part ran)
         }
+        if (args.contains ("--uhe190sjtest"))
+        {
+            // LYNX --uhe190sjtest report.txt plugin [plugin ...] (round 190sj, issues #329 / #255): src/KeySheetCheck190sj.inc
+            const auto i = args.indexOf ("--uhe190sjtest");
+            juce::StringArray plugins;
+            for (int k = i + 2; k < args.size() && ! args[k].startsWith ("--"); ++k)
+                plugins.add (args[k].unquoted());
+            runUhe190sjTest (args[i + 1].unquoted(), plugins);
+            return;
+        }
+        if (args.contains ("--keyroute190sjtest"))
+        {
+            // LYNX --keyroute190sjtest report.txt (round 190sj, issue #327): src/KeySheetCheck190sj.inc (a window; Windows: GUI lock)
+            runKeyRoute190sj (args[args.indexOf ("--keyroute190sjtest") + 1].unquoted());
+            return;
+        }
+        if (args.contains ("--keysheet190sjtest"))
+        {
+            // LYNX --keysheet190sjtest report.txt (round 190sj, issue #327; also in --selftest): src/KeySheetCheck190sj.inc
+            juce::LookAndFeel::setDefaultLookAndFeel (&lookAndFeel);
+            juce::String log;
+            const auto i = args.indexOf ("--keysheet190sjtest");
+            const auto result = keySheet190sjCheck (log);
+            juce::File (args[i + 1].unquoted()).replaceWithText (log + "keysheet190sj=" + result + "\n");
+            setApplicationReturnValue (result == "OK" ? 0 : 1);
+            quit();
+            return;
+        }
         if (args.contains ("--issue325test"))
         {
             // LYNX --issue325test report.txt [shot prefix] (round 190sg, issue #325; also in --selftest): src/Issue325Check190sg.inc
@@ -10633,6 +10661,9 @@ private:
         // round 190sg (issue #325): a sample dropped on an audio clip replaces its channel's sample, as FL (src/Issue325Check190sg.inc)
         juce::String issue325Log;
         const auto issue325Result = issue325Check (issue325Log);
+        // round 190sj (issue #327): every key of the F1 shortcut sheet runs its key-map action in its panel (src/KeySheetCheck190sj.inc)
+        juce::String keysheet190sjLog;
+        const auto keysheet190sjResult = keySheet190sjCheck (keysheet190sjLog);
         // round 190rp (0.1.32 Q4, stability): src/Stab190rpCheck.inc
         juce::String stab190rpLog;
         const auto stab190rpResult = stab190rpCheck (stab190rpLog);
@@ -12057,7 +12088,7 @@ private:
                         && sidechainResult == "OK" && lanesResult == "OK" && arrange190cgResult == "OK" && livescr190drResult == "OK" && livewf190efResult == "OK" && livewf190emResult == "OK" && trackclips190neResult == "OK" && tracker190nwResult == "OK" && tracker190obResult == "OK" && rackauto190ooResult == "OK" && tracker190omResult == "OK" && rackauto190owResult == "OK" && versionsResult == "OK" && pluginsOffResult == "OK" && missingFilesResult == "OK"
                         && midigen190fmResult == "OK" && clipenv190giResult == "OK" && beatslaw190gxResult == "OK" && warplaw190ikResult == "OK" && editorScale190heResult == "OK" && sfModBase190heResult == "OK" && trackauto190gzResult == "OK" && community190hqResult == "OK" && rollup030Result == "OK" && rollup031Result == "OK" && rollup031s2Result == "OK"
                         && keys190nuResult == "OK" && rollup031s3Result == "OK"
-                        && helix4khs190ocResult == "OK" && rollup031s4Result == "OK" && sections190olResult == "OK" && rollup031s5Result == "OK" && simpleDuck190otResult == "OK" && tracks190peResult == "OK" && issue258Result == "OK" && issues190qrResult == "OK" && backlog190rcResult == "OK" && community190riResult == "OK" && q1a190rwResult == "OK" && iox190rmResult == "OK" && issues190rtResult == "OK" && perf190rnResult == "OK" && perf190sbResult == "OK" && qa190rbResult == "OK" && bugs190rvResult == "OK" && q6190saResult == "OK" && issue325Result == "OK" && stab190rpResult == "OK" && repeats190pmResult == "OK" && mixerqol190qhResult == "OK" && autolive190qpResult == "OK" && issue282Result == "OK" && feel190qeResult == "OK" && toolbar190qgResult == "OK" && extras190qkResult == "OK" && extras190roResult == "OK" && discord190quResult == "OK" && trialmark190qtResult == "OK" && optionsux190qxResult == "OK" && chordlane190pfResult == "OK" && autolinks190ovResult == "OK"
+                        && helix4khs190ocResult == "OK" && rollup031s4Result == "OK" && sections190olResult == "OK" && rollup031s5Result == "OK" && simpleDuck190otResult == "OK" && tracks190peResult == "OK" && issue258Result == "OK" && issues190qrResult == "OK" && backlog190rcResult == "OK" && community190riResult == "OK" && q1a190rwResult == "OK" && iox190rmResult == "OK" && issues190rtResult == "OK" && perf190rnResult == "OK" && perf190sbResult == "OK" && qa190rbResult == "OK" && bugs190rvResult == "OK" && q6190saResult == "OK" && issue325Result == "OK" && keysheet190sjResult == "OK" && stab190rpResult == "OK" && repeats190pmResult == "OK" && mixerqol190qhResult == "OK" && autolive190qpResult == "OK" && issue282Result == "OK" && feel190qeResult == "OK" && toolbar190qgResult == "OK" && extras190qkResult == "OK" && extras190roResult == "OK" && discord190quResult == "OK" && trialmark190qtResult == "OK" && optionsux190qxResult == "OK" && chordlane190pfResult == "OK" && autolinks190ovResult == "OK"
                         && trackstates190opResult == "OK" && rollup031s6Result == "OK" // (round 190op's item, reported but not counted in its branch: rollup 0.1.31 step 6)
                         && rollup031s7Result == "OK" && rollup031s8Result == "OK" && rollup032Result == "OK" && headerGearResult == "OK" && perTab259Result == "OK" && slots260Result == "OK" && hotfixPlacesResult == "OK" && startPageScrollResult.startsWith ("OK") // (round 190qf: slots260) (rollup 0.1.31 step 7, round 190pw; and the three rounds' items its branches reported but did not count:)
                         && slides190piResult == "OK" && automodes190paResult == "OK" && heldSteps190ozResult == "OK"
@@ -12193,6 +12224,7 @@ private:
                << "bugs190rv=" << bugs190rvResult << (bugs190rvResult == "OK" ? juce::String() : " | " + bugs190rvLog.replace ("\n", "; ")) << "\n"
                << "q6190sa=" << q6190saResult << (q6190saResult == "OK" ? juce::String() : " | " + q6190saLog.replace ("\n", "; ")) << "\n"
                << "issue325=" << issue325Result << (issue325Result == "OK" ? juce::String() : " | " + issue325Log.replace ("\n", "; ")) << "\n"
+               << "keysheet190sj=" << keysheet190sjResult << (keysheet190sjResult == "OK" ? juce::String() : " | " + keysheet190sjLog.replace ("\n", "; ")) << "\n"
                << "stab190rp=" << stab190rpResult << (stab190rpResult == "OK" ? juce::String() : " | " + stab190rpLog.replace ("\n", "; ")) << "\n"
                << "repeats190pm=" << repeats190pmResult << "\n"
                << "mixerqol190qh=" << mixerqol190qhResult << "\n"
@@ -22625,6 +22657,8 @@ private:
 #include "Backlog190rcCheck.inc" // round 190rc: #288 native presets, #287 MIDI drop, #283 #285 #286, PR #284, Discord 11-24
 #include "Bugs190rvCheck.inc" // round 190rv: 0.1.32 open bug issues (#317 header LED, #319 pin)
 #include "Q6Check190sa.inc" // round 190sa: 0.1.32 Q6 (files) + the Simple layout's sound drop
+#include "KeySheetCheck190sj.inc" // round 190sj: issue #327, every key of the F1 shortcut sheet runs its action
+#include "Uhe190sjTest.inc" // round 190sj: issues #329 / #255, u-he editors opened, closed and removed (--uhe190sjtest)
 #include "Issue325Check190sg.inc" // round 190sg: issue #325, a sample dropped on an audio clip replaces its channel's sample (FL)
 #include "Qa190rbCheck.inc" // round 190rb: the 0.1.32 quality round's crash / memory fixes, checked
 #include "Stab190rpCheck.inc" // round 190rp: 0.1.32 Q4 stability (recovery box, device lost, recovery round trip, sample 0)

+ 172 - 0
src/Uhe190sjTest.inc

@@ -0,0 +1,172 @@
+    // --uhe190sjtest report.txt plugin.vst3 [plugin.vst3 ...] (round 190sj, issue #329 / #255): the steps of #329's report
+    // with any VST3 / CLAP instruments: the first one's editor opened and closed, the next one loaded, its editor opened and
+    // closed, the plugin removed 11 s later (the song's removal: the rack's retired state lets it go on the message thread,
+    // as in the report's frames); then all loaded again with every editor open at once, closed, and removed together; then
+    // removed while their editors are still open. Each step is written before it runs: a crash ends the report there.
+    void runUhe190sjTest (const juce::String& reportPath, const juce::StringArray& pluginPaths)
+    {
+        struct Seq final : juce::Timer
+        {
+            juce::String reportPath, report;
+            std::unique_ptr<lynx::AudioEngine> engine;
+            std::vector<lynx::PluginRef> refs;
+            std::vector<juce::String> names;
+            std::vector<std::function<bool()>> steps; // true: go on
+            std::size_t at = 0;
+            juce::uint32 waitUntil = 0;
+
+            void step (const juce::String& text)
+            {
+                report << juce::Time::getCurrentTime().toString (false, true, true, true) << " " << text << "\n";
+                juce::File (reportPath).replaceWithText (report);
+            }
+            int channelOf (const std::string& id) const
+            {
+                const auto& song = engine->getSong();
+                for (int c = 0; c < (int) song.channels.size(); ++c)
+                    if (song.channels[(std::size_t) c].instrument == lynx::InstrumentKind::plugin && song.channels[(std::size_t) c].plugin.id == id)
+                        return c;
+                return -1;
+            }
+            juce::AudioPluginInstance* instanceOf (std::size_t i) const
+            {
+                const auto c = channelOf (refs[i].id);
+                if (c < 0)
+                    return nullptr;
+                if (auto* p = dynamic_cast<lynx::PluginInstrument*> (engine->getChannelInstrument (c).get()))
+                    return &p->getInstance();
+                return nullptr;
+            }
+            void add (std::size_t i)
+            {
+                step ("loading " + names[i]);
+                engine->editSong ([this, i] (lynx::Song& song) {
+                    lynx::ChannelDef c;
+                    c.name = refs[i].name;
+                    c.instrument = lynx::InstrumentKind::plugin;
+                    c.plugin = refs[i];
+                    song.channels.push_back (c);
+                });
+            }
+            bool hosted (std::size_t i) { return instanceOf (i) != nullptr; }
+            void open (std::size_t i)
+            {
+                auto* inst = instanceOf (i);
+                step ("opening the editor of " + names[i] + (inst == nullptr ? " (not hosted)" : ""));
+                if (inst == nullptr)
+                    return;
+                const auto c = channelOf (refs[i].id);
+                std::shared_ptr<void> owner = engine->getChannelInstrument (c);
+                const auto id = refs[i].id;
+                lynx::PluginWindows::open (owner, *inst, inst->getName(),
+                                           { engine.get(), [this, id] (lynx::Song& song) -> lynx::PluginRef* {
+                                                const auto ch = channelOf (id);
+                                                return ch < 0 ? nullptr : &song.channels[(std::size_t) ch].plugin;
+                                            }, true, -1, -1 });
+                step ("editor open: " + names[i] + " = " + juce::String ((int) lynx::PluginWindows::isOpen (*inst)));
+            }
+            void close (std::size_t i)
+            {
+                if (auto* inst = instanceOf (i))
+                {
+                    step ("closing the editor of " + names[i]);
+                    lynx::PluginWindows::close (*inst);
+                }
+            }
+            void remove (std::size_t i)
+            {
+                step ("removing " + names[i]);
+                const auto id = refs[i].id;
+                engine->editSong ([this, id] (lynx::Song& song) {
+                    if (const auto c = channelOf (id); c >= 0)
+                        song.channels.erase (song.channels.begin() + c);
+                });
+            }
+            void wait (int ms) { waitUntil = juce::Time::getMillisecondCounter() + (juce::uint32) ms; }
+
+            void timerCallback() override
+            {
+                if (juce::Time::getMillisecondCounter() < waitUntil)
+                    return;
+                while (at < steps.size())
+                {
+                    const auto next = steps[at++];
+                    if (! next())
+                    {
+                        --at; // (not ready: tried again on the next tick)
+                        return;
+                    }
+                    if (juce::Time::getMillisecondCounter() < waitUntil)
+                        return;
+                }
+                step ("result=OK (no crash)");
+                stopTimer();
+                lynx::PluginWindows::closeAll();
+                juce::JUCEApplicationBase::getInstance()->setApplicationReturnValue (0);
+                juce::JUCEApplicationBase::quit();
+            }
+        };
+
+        auto* test = new Seq();
+        test->reportPath = reportPath;
+        test->engine = std::make_unique<lynx::AudioEngine> (false);
+        auto& host = test->engine->getPluginHost();
+        for (const auto& path : pluginPaths)
+        {
+            host.addPluginFile (juce::File (path));
+            for (const auto& type : host.getKnownPlugins().getTypes())
+                if (juce::File (type.fileOrIdentifier).getFileName() == juce::File (path).getFileName() || type.fileOrIdentifier == path)
+                {
+                    lynx::PluginRef ref;
+                    ref.id = type.createIdentifierString().toStdString();
+                    ref.name = type.name.toStdString();
+                    test->refs.push_back (ref);
+                    test->names.push_back (type.name + " (" + type.pluginFormatName + " " + type.version + ")");
+                    break;
+                }
+        }
+        test->step ("plugins: " + juce::String ((int) test->refs.size()) + " of " + juce::String (pluginPaths.size()));
+        const auto n = test->refs.size();
+        auto& s = test->steps;
+        const auto hostedAll = [test, n] {
+            for (std::size_t i = 0; i < n; ++i)
+                if (! test->hosted (i))
+                    return false;
+            return true;
+        };
+        // 1. #329's steps: A's editor opened and closed; B loaded, its editor opened, closed, B removed 11 s later
+        for (std::size_t i = 0; i < n; ++i)
+        {
+            s.push_back ([test, i] { test->add (i); return true; });
+            s.push_back ([test, i] { return test->hosted (i); });
+            s.push_back ([test, i] { test->open (i); test->wait (3000); return true; });
+            s.push_back ([test, i] { test->close (i); test->wait (i + 1 < test->refs.size() ? 2000 : 11000); return true; });
+        }
+        if (n > 0)
+            s.push_back ([test, n] { test->remove (n - 1); test->wait (3000); return true; });
+        for (std::size_t i = 0; i + 1 < n; ++i)
+            s.push_back ([test, i] { test->remove (i); test->wait (3000); return true; });
+        // 2. all loaded, every editor open at once, closed, removed together 11 s later
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->add (i); return true; });
+        s.push_back (hostedAll);
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->open (i); test->wait (1500); return true; });
+        s.push_back ([test] { test->wait (3000); return true; });
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->close (i); test->wait (500); return true; });
+        s.push_back ([test] { test->wait (11000); return true; });
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->remove (i); return true; });
+        s.push_back ([test] { test->wait (3000); return true; });
+        // 3. removed while every editor is open
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->add (i); return true; });
+        s.push_back (hostedAll);
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->open (i); test->wait (1500); return true; });
+        for (std::size_t i = 0; i < n; ++i)
+            s.push_back ([test, i] { test->remove (i); test->wait (2000); return true; });
+        s.push_back ([test] { test->wait (3000); return true; });
+        test->startTimerHz (20);
+    }

+ 214 - 0
src/core/KeyMap.cpp

@@ -345,6 +345,27 @@ std::vector<Action> makeActions()
         { "pianoRoll.nextChannel", TR_NOOP ("Next channel"), Context::pianoRoll, { chord ('K') } },
         { "pianoRoll.previousChannelWithNotes", TR_NOOP ("Previous channel with notes"), Context::pianoRoll, { chord ('H') } },
         { "pianoRoll.nextChannelWithNotes", TR_NOOP ("Next channel with notes"), Context::pianoRoll, { chord ('J') } },
+        // issue #327 (round 190sj): the editing keys of the F1 sheet were fixed in the Piano roll's own key handler, so Manage
+        // shortcuts had no entry for them (no "octave") and a remap could not reach them. FL 2026's ShortcutsModule has each
+        // as an action of its own (EEShiftUAction / EEShiftDAction "Transpose up / down" Shift+Up/Down, EEShiftU12Action /
+        // EEShiftD12Action "Transpose one octave up / down" Ctrl+Up/Down, EEShiftLAction / EEShiftRAction "Shift left /
+        // right" Shift+Left/Right, EEMuteAction Alt+M, EEUnmuteAction Shift+Alt+M, EEDeselAction Ctrl+D; REA 167j). The plain
+        // arrows (a LYNX extra since round 167j) are their second key.
+        { "pianoRoll.selectAll", TR_NOOP ("Select all notes"), Context::pianoRoll, { chord ('A', ctrl) } },
+        { "pianoRoll.copy", TR_NOOP ("Copy the selected notes"), Context::pianoRoll, { chord ('C', ctrl) } },
+        { "pianoRoll.cut", TR_NOOP ("Cut the selected notes (all when none is selected)"), Context::pianoRoll, { chord ('X', ctrl) } },
+        { "pianoRoll.paste", TR_NOOP ("Paste notes"), Context::pianoRoll, { chord ('V', ctrl) } },
+        { "pianoRoll.duplicate", TR_NOOP ("Duplicate the selected notes (to the right)"), Context::pianoRoll, { chord ('B', ctrl) } },
+        { "pianoRoll.portamento", TR_NOOP ("Portamento on/off (the selected notes)"), Context::pianoRoll, { chord ('P', ctrl) } },
+        { "pianoRoll.deselect", TR_NOOP ("Deselect (notes and time)"), Context::pianoRoll, { chord ('D', ctrl) } },
+        { "pianoRoll.muteNotes", TR_NOOP ("Mute the selected notes (all when none is selected)"), Context::pianoRoll, { chord ('M', alt) } },
+        { "pianoRoll.unmuteNotes", TR_NOOP ("Unmute the selected notes (all when none is selected)"), Context::pianoRoll, { chord ('M', shift | alt) } },
+        { "pianoRoll.transposeUp", TR_NOOP ("Transpose up (the selected notes, a semitone)"), Context::pianoRoll, { chord (up, shift), chord (up) } },
+        { "pianoRoll.transposeDown", TR_NOOP ("Transpose down (the selected notes, a semitone)"), Context::pianoRoll, { chord (down, shift), chord (down) } },
+        { "pianoRoll.octaveUp", TR_NOOP ("Transpose one octave up (the selected notes)"), Context::pianoRoll, { chord (up, ctrl) } },
+        { "pianoRoll.octaveDown", TR_NOOP ("Transpose one octave down (the selected notes)"), Context::pianoRoll, { chord (down, ctrl) } },
+        { "pianoRoll.shiftLeft", TR_NOOP ("Shift left (the selected notes, one grid step)"), Context::pianoRoll, { chord (left, shift), chord (left) } },
+        { "pianoRoll.shiftRight", TR_NOOP ("Shift right (the selected notes, one grid step)"), Context::pianoRoll, { chord (right, shift), chord (right) } },
 
         // Playlist (focused)
         { "playlist.zoomIn", TR_NOOP ("Zoom in"), Context::playlist, { chord (pageUp) } },
@@ -491,6 +512,13 @@ std::vector<Action> makeActions()
         { "playlist.cropClips", TR_NOOP ("Crop the selected clips to the time selection"), Context::playlist, {} },
         { "playlist.automationFollowsClips", TR_NOOP ("Automation follows clips on/off"), Context::playlist, {} },
         { "playlist.deselect", TR_NOOP ("Deselect (clips and time)"), Context::playlist, { chord ('D', ctrl) } },
+        // issue #327 (round 190sj): the Playlist's editing keys of the F1 sheet, fixed in its key handler before (FL's keys:
+        // the FL manual's shortcut list, Playlist and Piano roll: Ctrl+A select all, Ctrl+C / X / V, Ctrl+B duplicate to the right)
+        { "playlist.selectAll", TR_NOOP ("Select all (clips and time)"), Context::playlist, { chord ('A', ctrl) } },
+        { "playlist.copy", TR_NOOP ("Copy the selected clips"), Context::playlist, { chord ('C', ctrl) } },
+        { "playlist.cut", TR_NOOP ("Cut the selected clips"), Context::playlist, { chord ('X', ctrl) } },
+        { "playlist.paste", TR_NOOP ("Paste clips"), Context::playlist, { chord ('V', ctrl) } },
+        { "playlist.duplicate", TR_NOOP ("Duplicate the selected clips (to the right)"), Context::playlist, { chord ('B', ctrl) } },
         { "playlist.selectBySource", TR_NOOP ("Select by selected source"), Context::playlist, { chord ('C', shift) } },
         { "playlist.invertSelection", TR_NOOP ("Invert selection"), Context::playlist, { chord ('I', shift) } },
         // round 189g: FL's Edit / Select options ([DFM ShortcutsModule] EEMakeUniqueAsSampleAction, EELeftResizingAction
@@ -1617,4 +1645,190 @@ std::string KeyMap::overridesJson() const
     return out + (first ? "}\n" : "\n}\n");
 }
 
+// --- the F1 shortcut sheet (issue #327, round 190sj) ------------------------------------------------------------------
+
+namespace sheet
+{
+const std::vector<Row>& rows()
+{
+    using S = Section;
+    static const std::vector<Row> list {
+        { S::general, "", { "transport.playStop" }, TR_NOOP ("Play / stop (back to where playback started)") },
+        { S::general, "", { "transport.pause" }, TR_NOOP ("Play / pause") },
+        { S::general, "", { "edit.undo", "edit.redo" }, TR_NOOP ("Undo / redo") },
+        { S::general, "", { "file.new", "file.open" }, TR_NOOP ("New project / open") },
+        { S::general, "", { "file.save", "file.saveAs" }, TR_NOOP ("Save / save as") },
+        { S::general, "", { "file.export" }, TR_NOOP ("Export audio") },
+        { S::general, "", { "panel.maximisePlaylist" }, TR_NOOP ("Maximize or restore the Playlist") },
+        { S::general, "", { "transport.toggleMode" }, TR_NOOP ("Pattern / song mode") },
+        { S::general, "", { "view.typingPiano" }, TR_NOOP ("Typing keyboard to piano on/off") },
+        { S::general, "Z..M  Q..P", {}, TR_NOOP ("PC keyboard as a piano (selected channels)"), true },
+        { S::general, "", { "pattern.next", "pattern.previous" }, TR_NOOP ("Next / previous pattern") },
+        { S::general, "", { "pattern.insert" }, TR_NOOP ("Insert an empty pattern before the current one") },
+
+        { S::workspace, TR_NOOP ("Drag a panel title"), {}, TR_NOOP ("Move (snaps; Alt: free)") },
+        { S::workspace, TR_NOOP ("Double-click a title"), {}, TR_NOOP ("Maximize / restore") },
+        { S::workspace, TR_NOOP ("Title buttons"), {}, TR_NOOP ("Detach into a window, maximize, close") },
+        { S::workspace, TR_NOOP ("View menu"), {}, TR_NOOP ("Reset, save and load layouts") },
+
+        { S::channelRackMixer, TR_NOOP ("Click the name"), {}, TR_NOOP ("Open/close the editor (Alt keeps others open)") },
+        { S::channelRackMixer, TR_NOOP ("Ctrl+click the name"), {}, TR_NOOP ("Audition the channel") },
+        { S::channelRackMixer, TR_NOOP ("Selector"), { "rack.selectPrevious", "rack.selectNext" }, TR_NOOP ("Select (Ctrl: add, Shift: range)") },
+        { S::channelRackMixer, "", { "rack.moveUp", "rack.moveDown" }, TR_NOOP ("Move the selected channels") },
+        { S::channelRackMixer, "", { "rack.clone", "rack.deleteSelected" }, TR_NOOP ("Clone / delete the selected channels") },
+        { S::channelRackMixer, "", { "rack.sendToInserts" }, TR_NOOP ("Route to free mixer track") },
+        { S::channelRackMixer, "",
+          { "rack.mute1", "rack.mute2", "rack.mute3", "rack.mute4", "rack.mute5", "rack.mute6", "rack.mute7", "rack.mute8", "rack.mute9", "rack.mute10",
+            "rack.solo1", "rack.solo2", "rack.solo3", "rack.solo4", "rack.solo5", "rack.solo6", "rack.solo7", "rack.solo8", "rack.solo9", "rack.solo10" },
+          TR_NOOP ("Mute / solo channels 1-10 (typing piano off)") },
+        { S::channelRackMixer, TR_NOOP ("Knobs and faders"), {}, TR_NOOP ("Drag (Ctrl: fine), wheel, Alt+click or middle-click resets") },
+        { S::channelRackMixer, TR_NOOP ("Right-click a knob/fader"), {}, TR_NOOP ("Type value, reset, automation, MIDI link") },
+        { S::channelRackMixer, TR_NOOP ("Right-click Pattern / Song"), {}, TR_NOOP ("Show the Channel Rack / Playlist") },
+        { S::channelRackMixer, TR_NOOP ("Double-click Stop"), {}, TR_NOOP ("All notes off") },
+
+        { S::pianoRoll, TR_NOOP ("Click"), {}, TR_NOOP ("Create a note (or chord, via the selector)") },
+        { S::pianoRoll, TR_NOOP ("Drag"), {}, TR_NOOP ("Move; the right edge changes the length") },
+        { S::pianoRoll, TR_NOOP ("Right-click"), {}, TR_NOOP ("Delete") },
+        { S::pianoRoll, TR_NOOP ("Ctrl+drag"), {}, TR_NOOP ("Select (Ctrl+click adds to the selection)") },
+        { S::pianoRoll, TR_NOOP ("Shift+drag"), {}, TR_NOOP ("Copy") },
+        { S::pianoRoll, "", { "pianoRoll.selectAll", "pianoRoll.copy", "pianoRoll.cut", "pianoRoll.paste" }, TR_NOOP ("Select all, copy, cut, paste") },
+        { S::pianoRoll, "", { "pianoRoll.duplicate", "pianoRoll.quickQuantize" }, TR_NOOP ("Duplicate / quantize") },
+        { S::pianoRoll, "", { "pianoRoll.muteNotes", "pianoRoll.unmuteNotes" }, TR_NOOP ("Mute / unmute") },
+        { S::pianoRoll, "", { "pianoRoll.portamento", "pianoRoll.deselect" }, TR_NOOP ("Portamento / deselect") },
+        { S::pianoRoll, "", { "pianoRoll.transposeUp", "pianoRoll.transposeDown", "pianoRoll.shiftLeft", "pianoRoll.shiftRight" },
+          TR_NOOP ("Transpose a semitone / move by the grid") },
+        { S::pianoRoll, "", { "pianoRoll.octaveUp", "pianoRoll.octaveDown" }, TR_NOOP ("Transpose an octave") },
+        { S::pianoRoll, TR_NOOP ("Alt / Ctrl+wheel"), {}, TR_NOOP ("Disable snap / zoom") },
+
+        { S::playlist, TR_NOOP ("Click"), {}, TR_NOOP ("Paint the current pattern") },
+        { S::playlist, TR_NOOP ("Drag on the ruler"), {}, TR_NOOP ("Set the loop (right-click clears)") },
+        { S::playlist, TR_NOOP ("Right-click a clip name"), {}, TR_NOOP ("Split, make unique...") },
+        { S::playlist, TR_NOOP ("Track LED"), {}, TR_NOOP ("Mute the track") },
+        { S::playlist, "", { "playlist.selectAll", "playlist.copy", "playlist.cut", "playlist.paste", "playlist.duplicate" }, TR_NOOP ("Edit and duplicate") },
+    };
+    return list;
+}
+
+const char* sectionTitle (Section section)
+{
+    switch (section)
+    {
+        case Section::general: return TR_NOOP ("General");
+        case Section::workspace: return TR_NOOP ("Workspace");
+        case Section::channelRackMixer: return TR_NOOP ("Channel Rack and Mixer");
+        case Section::pianoRoll: return "Piano roll";
+        case Section::playlist: return "Playlist";
+    }
+    return "";
+}
+
+Context sectionContext (Section section)
+{
+    switch (section)
+    {
+        case Section::channelRackMixer: return Context::channelRack;
+        case Section::pianoRoll: return Context::pianoRoll;
+        case Section::playlist: return Context::playlist;
+        case Section::general:
+        case Section::workspace: break;
+    }
+    return Context::global;
+}
+
+namespace
+{
+    // Pattern layout with FL's File keys, Ctrl+N still Save new version's
+    bool newIsSaveVersion (const KeyMap& map)
+    {
+        return map.flFileKeys() && map.chordsFor ("file.saveNewVersion") == map.defaultsFor ("file.saveNewVersion");
+    }
+
+    // the panels where the row's (global) action's first key runs another action
+    bool keyTakenInEditors (const Row& row, const KeyMap& map)
+    {
+        if (row.actions.size() != 1 || row.actions.front() != "view.typingPiano")
+            return false;
+        const auto& keys = map.chordsFor (row.actions.front());
+        if (keys.empty())
+            return false;
+        for (const auto c : { Context::playlist, Context::pianoRoll })
+            if (const auto other = map.find (keys.front(), c, false); ! other.empty() && other != row.actions.front())
+                return true;
+        return false;
+    }
+}
+
+std::vector<std::string> shownActions (const Row& row, const KeyMap& map)
+{
+    auto out = row.actions;
+    if (newIsSaveVersion (map))
+        for (auto& id : out)
+            if (id == "file.new")
+                id = "file.saveNewVersion";
+    return out;
+}
+
+const char* description (const Row& row, const KeyMap& map)
+{
+    if (newIsSaveVersion (map) && std::find (row.actions.begin(), row.actions.end(), "file.new") != row.actions.end())
+        return TR_NOOP ("Save new version / open");
+    // FL 2026 (REA 168t2, measured): with the Playlist (or the Piano roll) focused, Ctrl+T adds an "Auto" time marker
+    if (keyTakenInEditors (row, map))
+        return TR_NOOP ("Typing keyboard to piano on/off (with the Playlist or Piano roll focused: a time marker, as in FL)");
+    return row.description;
+}
+
+std::string keysText (const Row& row, const KeyMap& map, modmap::Os os, const std::string* gesture)
+{
+    // each action's first key, grouped by modifiers in order of appearance
+    struct Group
+    {
+        std::uint8_t mods;
+        std::vector<std::string> names;
+    };
+    std::vector<Group> groups;
+    for (const auto& id : shownActions (row, map))
+    {
+        const auto& keys = map.chordsFor (id);
+        if (keys.empty())
+            continue;
+        const auto& c = keys.front();
+        auto name = toString (Chord { c.key, none });
+        auto it = std::find_if (groups.begin(), groups.end(), [&c] (const Group& g) { return g.mods == c.mods; });
+        if (it == groups.end())
+        {
+            groups.push_back ({ c.mods, {} });
+            it = groups.end() - 1;
+        }
+        it->names.push_back (name);
+    }
+
+    std::string out = gesture != nullptr ? *gesture : std::string (row.gesture);
+    for (const auto& g : groups)
+    {
+        auto prefix = toString (Chord { 'X', g.mods });
+        prefix.pop_back(); // ("Ctrl+")
+        std::string keys;
+        if (g.names.size() >= 4 && std::all_of (g.names.begin(), g.names.end(), [] (const std::string& n) { return n.size() == 1 && n[0] >= '0' && n[0] <= '9'; }))
+            keys = g.names.front() + ".." + g.names.back(); // ("1..0")
+        else
+        {
+            // a word the names share ("Numpad +", "Numpad -"): once
+            std::string common;
+            if (const auto space = g.names.front().find (' '); space != std::string::npos && g.names.size() > 1)
+            {
+                common = g.names.front().substr (0, space + 1);
+                for (const auto& n : g.names)
+                    if (n.compare (0, common.size(), common) != 0)
+                        common.clear();
+            }
+            for (std::size_t i = 0; i < g.names.size(); ++i)
+                keys += (i == 0 ? g.names[i] : "/" + g.names[i].substr (common.size()));
+        }
+        out += (out.empty() ? "" : " / ") + prefix + keys;
+    }
+    return modmap::keyNames (out, os);
+}
+} // namespace sheet
+
 } // namespace lynx::keys

+ 33 - 0
src/core/KeyMap.h

@@ -9,6 +9,8 @@
 // Modified chords (Ctrl/Alt), F-keys and the non-printable keys (Space, Enter, arrows, Delete...)
 // always work.
 
+#include "core/ModifierMap.h"
+
 #include <array>
 #include <cstdint>
 #include <functional>
@@ -244,6 +246,37 @@ private:
     std::vector<Chord> defaultChords (std::size_t index) const;
 };
 
+// The F1 shortcut sheet's first three columns as data (issue #327, round 190sj). Every key it names is a key-map action:
+// the sheet shows the live map's keys (a remapped one too, and on macOS FL-for-Mac's ⌘ / ⌥), Manage shortcuts lists
+// them, and a test presses each one in its panel. The rows without actions are mouse gestures and places ("Click", "Drag
+// a panel title"); "Z..M  Q..P" is the typing keyboard's layout (its notes, chosen in the typing keyboard's menu).
+namespace sheet
+{
+    enum class Section { general, workspace, channelRackMixer, pianoRoll, playlist };
+    struct Row
+    {
+        Section section;
+        const char* gesture;              // a mouse gesture or a place, shown before the keys; "" for none
+        std::vector<std::string> actions; // the key-map actions of the row's keys (none: a mouse row)
+        const char* description;          // English (translated by the UI)
+        bool typingKeys = false;          // the typing keyboard's note keys
+    };
+    const std::vector<Row>& rows();
+    const char* sectionTitle (Section section); // English
+    // The panel a section's keys need (the key map's context); global for General
+    Context sectionContext (Section section);
+    // The actions a row shows with `map` (Pattern layout, FL's File keys: Ctrl+N is Save new version, so the New project /
+    // open row names that action while its key is still the default one).
+    std::vector<std::string> shownActions (const Row& row, const KeyMap& map);
+    // The row's description with `map` (English): "Save new version / open" in that case.
+    const char* description (const Row& row, const KeyMap& map);
+    // The row's keys with `map`: each shown action's first key; keys with the same modifiers joined ("Ctrl+A/C/X/V",
+    // "Alt+Up/Down", "Numpad +/-"), four or more in a row as a range ("1..0"), the groups apart with " / "; the gesture
+    // first ("Selector / Up/Down"; `gesture`: its translation, else the English one). An action without a key is left out.
+    // On macOS (`os`) with FL-for-Mac's key names.
+    std::string keysText (const Row& row, const KeyMap& map, modmap::Os os = modmap::hostOs(), const std::string* gesture = nullptr);
+}
+
 // F10 / F11 (MIDI settings / Project info), FL's rule (FLEngine 0x13545f0, round 167o): when the Settings window is
 // open on the asked page the key closes it; open on another page it switches to the asked one; closed, it opens.
 enum class SettingsKey { open, switchPage, close };

+ 29 - 64
src/ui/MainComponent.cpp

@@ -1,4 +1,5 @@
 #include "ui/AutoLookEditor.h"
+#include "ui/FlMods.h"
 #include "engine/SafeWrite.h"
 #include "ui/ControllerBridge.h"
 #include "ui/KeyFocus.h"
@@ -2929,8 +2930,13 @@ void MainComponent::showActionSearch()
     actionSearch->toFront (false);
 }
 
+std::function<bool (const std::string&)> MainComponent::actionFilterForCheck;
+
 bool MainComponent::runAction (const std::string& id)
 {
+    // (round 190sj, --selftest "keysheet190sj": every key of the F1 sheet pressed; false = recorded, not run)
+    if (actionFilterForCheck != nullptr && ! actionFilterForCheck (id))
+        return true;
     auto is = [&id] (const char* name) { return id == name; };
 
     if (id == "simple.touchMode") // round 190pm (P23, LYNX extra): View › Touch mode (Simple layout)
@@ -12769,72 +12775,32 @@ void MainComponent::rememberRecent (const juce::File& file)
 
 std::unique_ptr<juce::Component> MainComponent::makeHelpContent (const keys::KeyMap* keyMapIn, std::function<void()> onManageShortcuts)
 {
-    // shortcut sheet: sections of "keys - action" rows, in two columns
+    // shortcut sheet: sections of "keys - action" rows, in two columns. Issue #327 (round 190sj): the rows are keys::sheet's
+    // (core/KeyMap.h): every key shown is a key-map action, written with the live map's keys (a remapped one too; macOS: ⌘ / ⌥)
     struct Row
     {
-        const char* keys;
-        const char* action;
+        juce::String keys, action;
     };
     struct Section
     {
-        const char* title;
+        juce::String title;
         std::vector<Row> rows;
     };
 
-    static const std::vector<Section> sections {
-        { TR_NOOP ("General"),
-          { { TR_NOOP ("Space"), TR_NOOP ("Play / stop (back to where playback started)") },
-            { "Ctrl+Space", TR_NOOP ("Play / pause") },
-            { "Ctrl+Z / Ctrl+Y", TR_NOOP ("Undo / redo") },
-            { "Ctrl+N / Ctrl+O", TR_NOOP ("New project / open") },
-            { "Ctrl+S / Ctrl+Shift+S", TR_NOOP ("Save / save as") },
-            { "Ctrl+R", TR_NOOP ("Export audio") },
-            { "Enter", TR_NOOP ("Maximize or restore the Playlist") },
-            { "L", TR_NOOP ("Pattern / song mode") },
-            { "Ctrl+T", TR_NOOP ("Typing keyboard to piano on/off") },
-            { "Z..M  Q..P", TR_NOOP ("PC keyboard as a piano (selected channels)") },
-            { "Numpad +/-", TR_NOOP ("Next / previous pattern") },
-            { "Ctrl+Shift+Ins", TR_NOOP ("Insert an empty pattern before the current one") } } },
-        { TR_NOOP ("Workspace"),
-          { { TR_NOOP ("Drag a panel title"), TR_NOOP ("Move (snaps; Alt: free)") },
-            { TR_NOOP ("Double-click a title"), TR_NOOP ("Maximize / restore") },
-            { TR_NOOP ("Title buttons"), TR_NOOP ("Detach into a window, maximize, close") },
-            { TR_NOOP ("View menu"), TR_NOOP ("Reset, save and load layouts") } } },
-        { TR_NOOP ("Channel Rack and Mixer"),
-          { { TR_NOOP ("Click the name"), TR_NOOP ("Open/close the editor (Alt keeps others open)") },
-            { TR_NOOP ("Ctrl+click the name"), TR_NOOP ("Audition the channel") },
-            { TR_NOOP ("Selector / Up, Down"), TR_NOOP ("Select (Ctrl: add, Shift: range)") },
-            { "Alt+Up / Alt+Down", TR_NOOP ("Move the selected channels") },
-            { "Alt+C / Alt+Del", TR_NOOP ("Clone / delete the selected channels") },
-            { "Ctrl+L", TR_NOOP ("Route to free mixer track") },
-            { TR_NOOP ("1..0 / Ctrl+1..0"), TR_NOOP ("Mute / solo channels 1-10 (typing piano off)") },
-            { TR_NOOP ("Knobs and faders"), TR_NOOP ("Drag (Ctrl: fine), wheel, Alt+click or middle-click resets") },
-            { TR_NOOP ("Right-click a knob/fader"), TR_NOOP ("Type value, reset, automation, MIDI link") },
-            { TR_NOOP ("Right-click Pattern / Song"), TR_NOOP ("Show the Channel Rack / Playlist") },
-            { TR_NOOP ("Double-click Stop"), TR_NOOP ("All notes off") } } },
-        { "Piano roll",
-          { { TR_NOOP ("Click"), TR_NOOP ("Create a note (or chord, via the selector)") },
-            { TR_NOOP ("Drag"), TR_NOOP ("Move; the right edge changes the length") },
-            { TR_NOOP ("Right-click"), TR_NOOP ("Delete") },
-            { TR_NOOP ("Ctrl+drag"), TR_NOOP ("Select (Ctrl+click adds to the selection)") },
-            { TR_NOOP ("Shift+drag"), TR_NOOP ("Copy") },
-            { "Ctrl+A/C/X/V", TR_NOOP ("Select all, copy, cut, paste") },
-            { "Ctrl+B / Ctrl+Q", TR_NOOP ("Duplicate / quantize") },
-            { "Alt+M / Shift+Alt+M", TR_NOOP ("Mute / unmute") },
-            { "Ctrl+P / Ctrl+D", TR_NOOP ("Portamento / deselect") },
-            { TR_NOOP ("Shift+arrows"), TR_NOOP ("Transpose a semitone / move by the grid (Ctrl+Up/Down: an octave)") },
-            { TR_NOOP ("Alt / Ctrl+wheel"), TR_NOOP ("Disable snap / zoom") } } },
-        { "Playlist",
-          { { TR_NOOP ("Click"), TR_NOOP ("Paint the current pattern") },
-            { TR_NOOP ("Drag on the ruler"), TR_NOOP ("Set the loop (right-click clears)") },
-            { TR_NOOP ("Right-click a clip name"), TR_NOOP ("Split, make unique...") },
-            { TR_NOOP ("Track LED"), TR_NOOP ("Mute the track") },
-            { "Ctrl+A/C/X/V  Ctrl+B", TR_NOOP ("Edit and duplicate") } } },
-    };
-
-    // the fourth column: every F-key of the live key map (issue #23: the sheet listed no F-keys), custom keys included
     const keys::KeyMap defaults;
     const auto& map = keyMapIn != nullptr ? *keyMapIn : defaults;
+    std::vector<Section> sections;
+    for (const auto& r : keys::sheet::rows())
+    {
+        const auto title = tr (keys::sheet::sectionTitle (r.section));
+        if (sections.empty() || sections.back().title != title)
+            sections.push_back ({ title, {} });
+        const auto gesture = r.typingKeys ? std::string (r.gesture) : tr (r.gesture).toStdString();
+        sections.back().rows.push_back ({ juce::String::fromUTF8 (keys::sheet::keysText (r, map, modmap::hostOs(), &gesture).c_str()),
+                                          flmods::keyNames (tr (keys::sheet::description (r, map))) });
+    }
+
+    // the fourth column: every F-key of the live key map (issue #23: the sheet listed no F-keys), custom keys included
     std::vector<std::pair<juce::String, juce::String>> functionKeys;
     for (const auto& b : map.functionKeyBindings())
         if (const auto* action = keys::findAction (b.actionId))
@@ -12852,7 +12818,8 @@ std::unique_ptr<juce::Component> MainComponent::makeHelpContent (const keys::Key
 
     struct Sheet final : juce::Component
     {
-        Sheet (std::vector<std::pair<juce::String, juce::String>> f, std::function<void()> onManage) : fkeys (std::move (f))
+        Sheet (std::vector<Section> s, std::vector<std::pair<juce::String, juce::String>> f, std::function<void()> onManage)
+            : sections (std::move (s)), fkeys (std::move (f))
         {
             // issue #234 (round 190ns): the way to change these keys, in the free space under the first columns (FL's
             // shortcut list and its Manage shortcuts window are apart too; LYNX's sheet links them so the keys are found)
@@ -12910,12 +12877,12 @@ std::unique_ptr<juce::Component> MainComponent::makeHelpContent (const keys::Key
                 g.fillRoundedRectangle ((float) x, (float) y + 4.0f, 3.0f, 12.0f, 1.5f);
                 g.setColour (colour::textPrimary);
                 g.setFont (font (type::title, true));
-                g.drawText (tr (section.title), x + 10, y, columnWidth - 10, 20, juce::Justification::centredLeft);
+                g.drawText (section.title, x + 10, y, columnWidth - 10, 20, juce::Justification::centredLeft);
                 y += 28;
 
                 for (const auto& row : section.rows)
                 {
-                    const auto keys = tr (row.keys);
+                    const auto& keys = row.keys;
                     g.setFont (font (type::small, true));
                     const auto keyWidth = juce::roundToInt (juce::GlyphArrangement::getStringWidth (g.getCurrentFont(), keys)) + 14;
                     g.setColour (colour::bg4);
@@ -12925,7 +12892,7 @@ std::unique_ptr<juce::Component> MainComponent::makeHelpContent (const keys::Key
                     g.setColour (colour::textSecondary);
                     g.setFont (font (type::body));
                     // (round 190oj WG-4: an action that does not fit on one line at 85 % takes two lines, instead of "res...")
-                    const auto action = flFileKeys && juce::String (row.action) == "New project / open" ? tr ("Save new version / open") : tr (row.action);
+                    const auto& action = row.action; // (round 190rs's "Save new version / open": keys::sheet::description)
                     const auto room = columnWidth - keyWidth - 10;
                     if (juce::GlyphArrangement::getStringWidth (g.getCurrentFont(), action) * 0.85f > (float) room)
                     {
@@ -12969,15 +12936,13 @@ std::unique_ptr<juce::Component> MainComponent::makeHelpContent (const keys::Key
             }
         }
 
+        std::vector<Section> sections;
         std::vector<std::pair<juce::String, juce::String>> fkeys;
-        bool flFileKeys = false; // round 190rs (D-4): the Pattern layout's Ctrl+N is FL's Save new version
         juce::Label manageNote;
         juce::HyperlinkButton manage;
     };
 
-    auto sheet = std::make_unique<Sheet> (std::move (functionKeys), std::move (onManageShortcuts));
-    sheet->flFileKeys = map.flFileKeys() && map.chordsFor ("file.saveNewVersion") == map.defaultsFor ("file.saveNewVersion");
-    return sheet;
+    return std::make_unique<Sheet> (std::move (sections), std::move (functionKeys), std::move (onManageShortcuts));
 }
 
 void MainComponent::showHelp()

+ 5 - 0
src/ui/MainComponent.h

@@ -185,6 +185,9 @@ public:
     // The Clip-launch workflow's detail view (round 183a), made with the grid; nullptr until then.
     DetailView* getDetailViewForSnapshot() const noexcept { return detailView.get(); }
     bool runActionForSnapshot (const std::string& id) { return runAction (id); }
+    // Tests (round 190sj): sees every action before it runs; false = taken as run without running it (the F1 sheet check
+    // presses keys that would open file choosers and dialogs)
+    static std::function<bool (const std::string&)> actionFilterForCheck;
     // round 190mz (--undoshot190mz): Settings › General › "Alternate undo mode"
     bool getAlternateUndo() const noexcept { return alternateUndo; }
     void setAlternateUndoForSnapshot (bool on) noexcept { alternateUndo = on; }
@@ -223,6 +226,7 @@ public:
     void openQuickAddForTest() { showQuickAdd(); } // --windowtest
     Workspace& workspaceForTest() { return workspace; } // --plugwintest dock mode (issue #116)
     const keys::KeyMap& getKeyMapForSnapshot() const { return keyMap; }
+    keys::KeyMap& keyMapForCheck() { return keyMap; } // (round 190sj: a remap, as Manage shortcuts makes one)
     juce::Component* setupOverlayForTest() const { return setupOverlay.get(); }
     // --- round 190np: first-run onboarding (core/Onboarding.h, ui/Onboarding.h, ui/MainOnboarding.cpp) ---------------------
     // The welcome card ("Where are you coming from?"): at the first start of a fresh profile, and from Help › Welcome...
@@ -265,6 +269,7 @@ public:
     juce::Component& typingPianoButtonForTest() noexcept { return typingPianoButton; } // (hotfix 0.1.31.2, round 190ra)
     void showShortcutManagerForTest() { showShortcutManager(); } // (round 190ra, #244)
     void setTypingPianoForTest (bool on) { setTypingPiano (on); } // (round 190ra)
+    bool typingPianoForCheck() const noexcept { return typingPiano; } // (round 190sj, issue #327)
     liveui::Context getLiveContextForSnapshot() { return liveContext(); } // (rollup 0.1.31 step 3: --rollup031s3shot)
     // issue #232 stage 2 (round 190nz, --tabs2shot190nz): the Window menu and the audio device bar without other windows
     juce::PopupMenu windowMenuForSnapshot() { return windowMenu(); }

+ 47 - 0
src/ui/NativeChild.cpp

@@ -6,6 +6,7 @@
 
 #include <algorithm>
 #include <cmath>
+#include <iterator>
 #include <map>
 #include <utility>
 #include <vector>
@@ -1519,6 +1520,52 @@ void postClickForTest (void* window, juce::Point<int> clientPoint)
    #endif
 }
 
+bool pressKeyForTest (void* fallback, int virtualKey, bool ctrl, bool shift, bool alt)
+{
+   #if JUCE_WINDOWS
+    auto to = GetFocus();
+    DWORD pid = 0;
+    if (to != nullptr)
+        GetWindowThreadProcessId (to, &pid);
+    if (to == nullptr || pid != GetCurrentProcessId())
+        to = static_cast<HWND> (fallback);
+    if (to == nullptr)
+        return false;
+    BYTE before[256] {}, held[256] {};
+    GetKeyboardState (before);
+    std::copy (std::begin (before), std::end (before), std::begin (held));
+    const auto set = [&held] (int vk, bool down) { held[vk] = (BYTE) (down ? 0x80 : 0); };
+    set (VK_CONTROL, ctrl);
+    set (VK_LCONTROL, ctrl);
+    set (VK_SHIFT, shift);
+    set (VK_LSHIFT, shift);
+    set (VK_MENU, alt);
+    set (VK_LMENU, alt);
+    SetKeyboardState (held);
+    const auto scan = MapVirtualKeyW ((UINT) virtualKey, MAPVK_VK_TO_VSC);
+    const auto extended = (virtualKey >= VK_PRIOR && virtualKey <= VK_DOWN) || virtualKey == VK_INSERT || virtualKey == VK_DELETE ? (1u << 24) : 0u;
+    const auto down = alt ? WM_SYSKEYDOWN : WM_KEYDOWN, up = alt ? WM_SYSKEYUP : WM_KEYUP;
+    PostMessageW (to, down, (WPARAM) virtualKey, (LPARAM) (1u | (scan << 16) | extended | (alt ? (1u << 29) : 0u)));
+    PostMessageW (to, up, (WPARAM) virtualKey, (LPARAM) (1u | (scan << 16) | extended | (alt ? (1u << 29) : 0u) | (1u << 30) | (1u << 31)));
+    const auto until = GetTickCount64() + 120;
+    MSG m;
+    while (GetTickCount64() < until)
+    {
+        while (PeekMessageW (&m, nullptr, 0, 0, PM_REMOVE))
+        {
+            TranslateMessage (&m);
+            DispatchMessageW (&m);
+        }
+        Sleep (5);
+    }
+    SetKeyboardState (before);
+    return true;
+   #else
+    juce::ignoreUnused (fallback, virtualKey, ctrl, shift, alt);
+    return false;
+   #endif
+}
+
 bool pressSpaceForTest (void* fallback)
 {
    #if JUCE_WINDOWS

+ 4 - 0
src/ui/NativeChild.h

@@ -159,6 +159,10 @@ void postClickForTest (void* window, juce::Point<int> clientPoint);
 // window that has the system's keyboard focus (when it is one of LYNX's own; else `fallback`), then the thread's
 // messages pumped for a moment (TranslateMessage makes the character, as for a real key). True when it was posted.
 bool pressSpaceForTest (void* fallback);
+// Tests (Windows; elsewhere false), round 190sj (issue #327): any key pressed the same way, with Ctrl / Shift / Alt held in
+// the thread's keyboard state for its messages (SetKeyboardState: what JUCE reads for the modifiers; no system input).
+// `virtualKey` is a Windows virtual-key code ('A'...'Z', '0'...'9', VK_UP...).
+bool pressKeyForTest (void* fallback, int virtualKey, bool ctrl, bool shift, bool alt);
 // Tests (Windows; elsewhere 0): the system's hit test of the component's own native window at its local point: 1
 // (HTCLIENT) = the window takes the mouse there, -1 (HTTRANSPARENT) = the click goes to the window under it. (Round
 // 190cj: an attached component that is not opaque answers "transparent" wherever its hitTest says no.)

+ 51 - 73
src/ui/PianoRollComponent.cpp

@@ -6105,6 +6105,11 @@ bool PianoRollComponent::runAction (const std::string& id)
         repaint();
         return true;
     }
+    if (id == "pianoRoll.selectAll" || id == "pianoRoll.copy" || id == "pianoRoll.cut" || id == "pianoRoll.paste" || id == "pianoRoll.duplicate"
+        || id == "pianoRoll.portamento" || id == "pianoRoll.deselect" || id == "pianoRoll.muteNotes" || id == "pianoRoll.unmuteNotes"
+        || id == "pianoRoll.transposeUp" || id == "pianoRoll.transposeDown" || id == "pianoRoll.octaveUp" || id == "pianoRoll.octaveDown"
+        || id == "pianoRoll.shiftLeft" || id == "pianoRoll.shiftRight")
+        return editKeyAction (id); // (issue #327, round 190sj)
     if (is ("pianoRoll.arpeggiate")) openNoteTool (NoteTool::arpeggiate);
     else if (is ("pianoRoll.strum")) openNoteTool (NoteTool::strum);
     else if (is ("pianoRoll.flip")) openNoteTool (NoteTool::flip);
@@ -6864,41 +6869,6 @@ bool PianoRollComponent::handleKey (const juce::KeyPress& key)
         return true;
     }
 
-    if (cmd && letter == 'A')
-    {
-        selectAll();
-        return true;
-    }
-
-    if (cmd && ! shift && ! alt && letter == 'C') // (Ctrl+Shift+C: pattern.clone; round 190rw: Ctrl+Alt+C is the global Consolidate)
-    {
-        copySelection();
-        return true;
-    }
-
-    if (cmd && letter == 'X')
-    {
-        // round 190rw (Q1): with nothing selected FL 2026 cuts all of the channel's notes (checked live); LYNX copied them
-        // all and deleted none
-        const auto doomed = selectionOrAll();
-        copySelection();
-        setSelection (doomed);
-        deleteSelection();
-        return true;
-    }
-
-    if (cmd && ! shift && letter == 'V') // (Ctrl+Shift+V: pianoRoll.pasteMidiClipboard)
-    {
-        paste();
-        return true;
-    }
-
-    if (cmd && letter == 'B')
-    {
-        duplicateSelection();
-        return true;
-    }
-
     // quick note operations: one undo step each, on the selection (or all notes). The quantize ones are key map
     // actions (pianoRoll.quickQuantize / quantizeStarts / quantizeHalf) so they can be reassigned.
     if (cmd && ! shift && ! alt && letter == 'U') // (round 190rw: Ctrl+Shift+U is the key map's pianoRoll.liveQuantizeSettings)
@@ -6932,11 +6902,44 @@ bool PianoRollComponent::handleKey (const juce::KeyPress& key)
         return true;
     }
 
-    // FL's editor keys (ShortcutsModule EEMuteAction / EEUnmuteAction / EEDeselAction, round 167j): Alt+M mutes,
-    // Shift+Alt+M unmutes, Ctrl+D deselects. (Ctrl+M stays FL's metronome.)
-    if (alt && ! cmd && letter == 'M')
+    // (the tools and the other single letters are key map actions now: runKeyAction, issue #12; issue #327, round 190sj:
+    // Ctrl+A / C / X / V / B / P / D, Alt+M, Shift+Alt+M and the arrows too, editKeyAction)
+    return false;
+}
+
+// Issue #327 (round 190sj): the F1 sheet's editing keys, key-map actions now (Manage shortcuts lists them, a remap reaches
+// them); before, handleKey caught the keys themselves. False when there is nothing to do (the arrows without a selection),
+// so the key goes on as before.
+bool PianoRollComponent::editKeyAction (const std::string& id)
+{
+    const juce::ScopeGuard followEdit { [this, before = engine.getPublishCount()] {
+        EditorGlobals::get().pauseFollowIfEdited (EditorGlobals::FollowView::pianoRoll, before, engine.getPublishCount());
+    } };
+    auto is = [&id] (const char* name) { return id == name; };
+    if (is ("pianoRoll.selectAll")) selectAll();
+    else if (is ("pianoRoll.copy")) copySelection();
+    else if (is ("pianoRoll.cut"))
+    {
+        // round 190rw (Q1): with nothing selected FL 2026 cuts all of the channel's notes (checked live); LYNX copied them
+        // all and deleted none
+        const auto doomed = selectionOrAll();
+        copySelection();
+        setSelection (doomed);
+        deleteSelection();
+    }
+    else if (is ("pianoRoll.paste")) paste();
+    else if (is ("pianoRoll.duplicate")) duplicateSelection();
+    else if (is ("pianoRoll.portamento")) togglePorta();
+    else if (is ("pianoRoll.deselect"))
     {
-        auto mute = ! shift;
+        setSelection ({});
+        setTimeSelection (-1, -1);
+        rulerMark = -1;
+    }
+    else if (is ("pianoRoll.muteNotes") || is ("pianoRoll.unmuteNotes"))
+    {
+        // FL's editor keys (ShortcutsModule EEMuteAction / EEUnmuteAction, round 167j): Alt+M mutes, Shift+Alt+M unmutes
+        auto mute = is ("pianoRoll.muteNotes");
         // issue #249 (round 190oq, LYNX extra, off = FL): Alt+M on notes that are all muted unmutes them
         if (mute && mutekeys::toggles())
         {
@@ -6947,43 +6950,18 @@ bool PianoRollComponent::handleKey (const juce::KeyPress& key)
             });
         }
         setNotesMuted (mute);
-        return true;
     }
-
-    if (cmd && ! alt && ! shift && letter == 'D')
-    {
-        setSelection ({});
-        setTimeSelection (-1, -1);
-        rulerMark = -1;
-        return true;
-    }
-
-    if (cmd && letter == 'P')
-    {
-        togglePorta();
-        return true;
-    }
-
-    // FL's editor arrow keys (noteedit::arrowMove): Shift+Up/Down a semitone, Ctrl+Up/Down an octave,
-    // Shift+Left/Right one grid step
-    if (! selection.empty())
+    else
     {
-        using noteedit::Arrow;
-        const auto arrow = code == juce::KeyPress::upKey ? std::optional<Arrow> (Arrow::up)
-                         : code == juce::KeyPress::downKey ? std::optional<Arrow> (Arrow::down)
-                         : code == juce::KeyPress::leftKey ? std::optional<Arrow> (Arrow::left)
-                         : code == juce::KeyPress::rightKey ? std::optional<Arrow> (Arrow::right)
-                         : std::nullopt;
-        if (arrow)
-            if (const auto move = noteedit::arrowMove (*arrow, cmd, shift, alt); move.handled)
-            {
-                nudge (move.gridSteps * grid, move.keys);
-                return true;
-            }
+        // FL's editor arrow keys (EEShiftU/D, EEShiftU12/D12, EEShiftL/R): a semitone, an octave, one grid step
+        const auto keys = is ("pianoRoll.transposeUp") ? 1 : is ("pianoRoll.transposeDown") ? -1
+                        : is ("pianoRoll.octaveUp") ? 12 : is ("pianoRoll.octaveDown") ? -12 : 0;
+        const auto steps = is ("pianoRoll.shiftRight") ? 1 : is ("pianoRoll.shiftLeft") ? -1 : 0;
+        if ((keys == 0 && steps == 0) || selection.empty())
+            return false;
+        nudge (steps * gridTicks(), keys);
     }
-
-    // (the tools and the other single letters are key map actions now: runKeyAction, issue #12)
-    return false;
+    return true;
 }
 
 bool PianoRollComponent::runKeyAction (const std::string& id)

+ 1 - 0
src/ui/PianoRollComponent.h

@@ -102,6 +102,7 @@ public:
     bool handleKey (const juce::KeyPress& key);
     // The key map's actions of this editor (its tools and single letters: "pianoRoll.tool.knife"...); false if not one.
     bool runKeyAction (const std::string& id);
+    bool editKeyAction (const std::string& id); // issue #327: the F1 sheet's editing keys (key-map actions)
     // The tool buttons' tooltips show the keys the key map gives them (`keyOf`: action id -> key text, "" = none).
     void refreshToolKeys (const std::function<juce::String (const std::string&)>& keyOf);
 

+ 9 - 30
src/ui/PlaylistComponent.cpp

@@ -14215,6 +14215,13 @@ bool PlaylistComponent::runAction (const std::string& id)
 {
     auto is = [&id] (const char* name) { return id == name; };
 
+    // issue #327 (round 190sj): the F1 sheet's editing keys, key-map actions now (Manage shortcuts lists them)
+    if (is ("playlist.selectAll")) { selectAllWithTime(); return true; }
+    if (is ("playlist.copy")) { copySelection(); return true; }
+    if (is ("playlist.cut")) { copySelection(); deleteSelection(); return true; }
+    if (is ("playlist.paste")) { pasteClips(); return true; }
+    if (is ("playlist.duplicate")) { duplicateSelection (false); return true; }
+
     // round 190qu (Discord 11-24): the selected automation clips into their tracks' lanes, and the time selection of the
     // selected track's lanes as automation clips (no default keys: FL and Live have none)
     if (is ("playlist.selectedClipsToLanes"))
@@ -15390,36 +15397,8 @@ bool PlaylistComponent::handleKey (const juce::KeyPress& key)
         return true;
     }
 
-    if (cmd && letter == 'A')
-    {
-        selectAllWithTime();
-        return true;
-    }
-
-    if (cmd && ! mods.isShiftDown() && ! mods.isAltDown() && letter == 'C') // (Ctrl+Shift+C: pattern.clone; Ctrl+Alt+C: consolidate)
-    {
-        copySelection();
-        return true;
-    }
-
-    if (cmd && letter == 'X')
-    {
-        copySelection();
-        deleteSelection();
-        return true;
-    }
-
-    if (cmd && ! mods.isShiftDown() && letter == 'V') // (Ctrl+Shift+V: playlist.makeUnique)
-    {
-        pasteClips();
-        return true;
-    }
-
-    if (cmd && ! mods.isShiftDown() && letter == 'B') // (Ctrl+Shift+B: playlist.cloneTracks; Ctrl+Alt+B: linked copies, round 190ne)
-    {
-        duplicateSelection (mods.isAltDown());
-        return true;
-    }
+    // (issue #327, round 190sj: Ctrl+A / C / X / V / B are the key map's playlist.selectAll / copy / cut / paste / duplicate now;
+    // Ctrl+Alt+B is playlist.duplicateLinked)
 
     // (the tool letters are key map actions now: runKeyAction, issue #12)
     return false;

+ 120 - 0
tests/KeySheet190sjTests.inc

@@ -0,0 +1,120 @@
+// Round 190sj (issue #327): every key the F1 shortcut sheet names is a key-map action (so Manage shortcuts lists it and a
+// remap reaches it), with FL's keys by default; the sheet writes the live map's keys, on macOS with FL-for-Mac's ⌘ / ⌥.
+// The app check (--selftest "keysheet190sj") presses each one in its panel.
+
+TEST (keysheet190sj_every_sheet_key_is_a_key_map_action)
+{
+    using namespace lynx::keys;
+    KeyMap map;
+    CHECK (map.conflicts().empty());
+    int keyRows = 0;
+    for (const auto& row : sheet::rows())
+    {
+        if (row.actions.empty())
+        {
+            CHECK (std::string (row.gesture).size() > 0); // a mouse gesture / place, or the typing keyboard's notes
+            continue;
+        }
+        ++keyRows;
+        const auto ctx = sheet::sectionContext (row.section);
+        for (const auto& id : row.actions)
+        {
+            const auto* a = findAction (id);
+            CHECK (a != nullptr);
+            if (a == nullptr)
+                continue;
+            CHECK (a->context == ctx || a->context == Context::global);
+            CHECK (! map.chordsFor (id).empty());
+            // its key runs it where the sheet says (a panel's own action wins over a global one: FL's Ctrl+T, below)
+            for (const auto& c : map.chordsFor (id))
+                CHECK (map.find (c, a->context == Context::global ? Context::channelRack : a->context, false) == id);
+        }
+    }
+    CHECK (keyRows == 23);
+}
+
+TEST (keysheet190sj_fl_keys_and_the_sheet_text)
+{
+    using namespace lynx::keys;
+    using lynx::modmap::Os;
+    KeyMap map;
+    const auto text = [&map] (const std::string& firstAction, Os os = Os::windows) {
+        for (const auto& row : sheet::rows())
+            if (! row.actions.empty() && row.actions.front() == firstAction)
+                return sheet::keysText (row, map, os);
+        return std::string ("(no row)");
+    };
+    CHECK (text ("transport.playStop") == "Space");
+    CHECK (text ("edit.undo") == "Ctrl+Z/Y");
+    CHECK (text ("file.save") == "Ctrl+S / Ctrl+Shift+S");
+    CHECK (text ("view.typingPiano") == "Ctrl+T");
+    CHECK (text ("pattern.next") == "Numpad +/-");
+    CHECK (text ("pattern.insert") == "Ctrl+Shift+Insert");
+    CHECK (text ("rack.selectPrevious") == "Selector / Up/Down");
+    CHECK (text ("rack.moveUp") == "Alt+Up/Down");
+    CHECK (text ("rack.clone") == "Alt+C/Delete");
+    CHECK (text ("rack.mute1") == "1..0 / Ctrl+1..0");
+    CHECK (text ("pianoRoll.selectAll") == "Ctrl+A/C/X/V");
+    CHECK (text ("pianoRoll.duplicate") == "Ctrl+B/Q");
+    CHECK (text ("pianoRoll.muteNotes") == "Alt+M / Shift+Alt+M");
+    CHECK (text ("pianoRoll.portamento") == "Ctrl+P/D");
+    CHECK (text ("pianoRoll.transposeUp") == "Shift+Up/Down/Left/Right");
+    CHECK (text ("pianoRoll.octaveUp") == "Ctrl+Up/Down");
+    CHECK (text ("playlist.selectAll") == "Ctrl+A/C/X/V/B");
+    // macOS: FL for Mac's names (Cmd for Ctrl, Opt for Alt; core/ModifierMap.h, the editors' flmods)
+    CHECK (text ("view.typingPiano", Os::mac) == "\xe2\x8c\x98+T");
+    CHECK (text ("pianoRoll.octaveUp", Os::mac) == "\xe2\x8c\x98+Up/Down");
+    CHECK (text ("pianoRoll.muteNotes", Os::mac) == "\xe2\x8c\xa5+M / Shift+\xe2\x8c\xa5+M");
+    CHECK (text ("pianoRoll.transposeUp", Os::mac) == "Shift+Up/Down/Left/Right");
+
+    // FL's editor keys (REA 167j): Shift+Up/Down a semitone, Ctrl+Up/Down an octave, Shift+Left/Right a grid step; the
+    // plain arrows (LYNX extra) as the second key
+    CHECK (map.find ({ up, shift }, Context::pianoRoll, false) == "pianoRoll.transposeUp");
+    CHECK (map.find ({ down, shift }, Context::pianoRoll, false) == "pianoRoll.transposeDown");
+    CHECK (map.find ({ up, ctrl }, Context::pianoRoll, false) == "pianoRoll.octaveUp");
+    CHECK (map.find ({ down, ctrl }, Context::pianoRoll, false) == "pianoRoll.octaveDown");
+    CHECK (map.find ({ left, shift }, Context::pianoRoll, false) == "pianoRoll.shiftLeft");
+    CHECK (map.find ({ right, none }, Context::pianoRoll, true) == "pianoRoll.shiftRight");
+    CHECK (map.find ({ 'M', alt }, Context::pianoRoll, false) == "pianoRoll.muteNotes");
+    CHECK (map.find ({ 'M', shift | alt }, Context::pianoRoll, false) == "pianoRoll.unmuteNotes");
+    CHECK (map.find ({ 'B', ctrl }, Context::playlist, false) == "playlist.duplicate");
+    CHECK (map.find ({ 'B', ctrl | alt }, Context::playlist, false) == "playlist.duplicateLinked");
+    // FL 2026 (REA 168t2, measured): Ctrl+T toggles the typing keyboard, except with the Playlist (Add auto marker) or the
+    // Piano roll (its pattern marker) focused; the sheet says so
+    CHECK (map.find ({ 'T', ctrl }, Context::playlist, false) == "playlist.markerAuto");
+    CHECK (map.find ({ 'T', ctrl }, Context::pianoRoll, false) == "pianoRoll.markerAuto");
+    for (const auto c : { Context::global, Context::channelRack, Context::mixer, Context::browser })
+        CHECK (map.find ({ 'T', ctrl }, c, false) == "view.typingPiano");
+    const auto& rows = sheet::rows();
+    const auto typing = std::find_if (rows.begin(), rows.end(), [] (const sheet::Row& r) { return ! r.actions.empty() && r.actions.front() == "view.typingPiano"; });
+    CHECK (typing != rows.end() && std::string (sheet::description (*typing, map)).find ("time marker") != std::string::npos);
+}
+
+TEST (keysheet190sj_remapped_keys_show_and_manage_lists_them)
+{
+    using namespace lynx::keys;
+    KeyMap map;
+    // Manage shortcuts lists every action: the octave is one now (the issue: no entry for it)
+    CHECK (findAction ("pianoRoll.octaveUp") != nullptr && findAction ("pianoRoll.octaveDown") != nullptr);
+    map.setChords ("pianoRoll.octaveUp", { Chord { up, (std::uint8_t) (alt | shift) } });
+    CHECK (map.find ({ up, ctrl }, Context::pianoRoll, false).empty());
+    CHECK (map.find ({ up, alt | shift }, Context::pianoRoll, false) == "pianoRoll.octaveUp");
+    CHECK (map.overridesJson().find ("pianoRoll.octaveUp") != std::string::npos);
+    for (const auto& row : sheet::rows())
+        if (! row.actions.empty() && row.actions.front() == "pianoRoll.octaveUp")
+            CHECK (sheet::keysText (row, map, lynx::modmap::Os::windows) == "Shift+Alt+Up / Ctrl+Down");
+    // the typing keyboard on another key: the sheet's note about the editors' Ctrl+T goes
+    map.setChords ("view.typingPiano", { Chord { 'K', (std::uint8_t) (ctrl | shift) } });
+    for (const auto& row : sheet::rows())
+        if (! row.actions.empty() && row.actions.front() == "view.typingPiano")
+            CHECK (std::string (sheet::description (row, map)) == "Typing keyboard to piano on/off");
+    // FL's File keys (Pattern layout, round 190rs): the New project / open row is Save new version's
+    map.resetToDefaults();
+    map.setFlFileKeys (true);
+    for (const auto& row : sheet::rows())
+        if (! row.actions.empty() && row.actions.front() == "file.new")
+        {
+            CHECK (std::string (sheet::description (row, map)) == "Save new version / open");
+            CHECK (sheet::keysText (row, map, lynx::modmap::Os::windows) == "Ctrl+N/O");
+        }
+}

+ 1 - 0
tests/tests.cpp

@@ -18220,3 +18220,4 @@ TEST (fl_low_lifter_matches_fl_engine)
 #include "Q3190ryTests.inc" // round 190ry (0.1.32 stage Q3, fluidity): native engines offered without listing FL's folders; the big UI project
 #include "Issues190seTests.inc" // round 190se: #324 a looped time selection past the song's end plays its clips once, #323 the Browser's double click
 #include "Issue325Tests.inc" // round 190sg (issue #325): a sample dropped on an audio clip replaces its channel's sample (FL 2026)
+#include "KeySheet190sjTests.inc" // round 190sj (issue #327): every F1 sheet key is a key-map action, in its panel