Q1 /X/CANCEL/g and /OK/SELECT/g

This commit is contained in:
Peter D. Gray 2023-05-31 10:35:27 -04:00 committed by scgbckbone
parent 2c18f0dbc1
commit 4d1ab35ddf

View File

@ -165,6 +165,9 @@ async def ux_show_story(msg, title=None, escape=None, sensitive=False, strict_es
gc.collect()
else:
# simple string
if version.has_qwerty:
msg = msg.replace(' X ', ' CANCEL ').replace('OK', 'SELECT')
for ln in msg.split('\n'):
if len(ln) > CH_PER_W:
lines.extend(word_wrap(ln, CH_PER_W))