bare-tui-form 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fields/select.js +3 -1
- package/form.js +3 -6
- package/package.json +1 -1
package/fields/select.js
CHANGED
package/form.js
CHANGED
|
@@ -915,12 +915,9 @@ class Form {
|
|
|
915
915
|
}
|
|
916
916
|
if (this.submitted) return [t.help(' ✓ submitted')]
|
|
917
917
|
const chord = (a) => (a && a[0]) || ''
|
|
918
|
-
const parts = [
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
`${chord(this.keys.submit)} submit`,
|
|
922
|
-
`${chord(this.keys.cancel)} cancel`
|
|
923
|
-
]
|
|
918
|
+
const parts = []
|
|
919
|
+
if (this.ring.items.length > 1) parts.push(`${chord(this.keys.next)} move`)
|
|
920
|
+
parts.push(`${chord(this.keys.submit)} submit`, `${chord(this.keys.cancel)} cancel`)
|
|
924
921
|
if (scrollable) parts.push('↕ scroll')
|
|
925
922
|
return [t.help(' ' + parts.join(' · '))]
|
|
926
923
|
}
|