Compare commits

..

2 commits

Author SHA1 Message Date
6b28f5c001
Allow using SPACE instead of ENTER in menus 2024-04-27 20:26:44 -05:00
a9fe039928
Junk spacing 2024-04-27 20:24:15 -05:00
3 changed files with 14 additions and 12 deletions

View file

@ -17,6 +17,8 @@ HIDDEN_MASK = '*'
NEWLINE = 10
SPACE = 32
DELETE = 330
BACKSPACE = 263

View file

@ -1,6 +1,6 @@
import curses
from time import sleep
from fallout_functions import slowWrite, centeredWrite, NEWLINE, addSound
from fallout_functions import slowWrite, centeredWrite, NEWLINE, SPACE, addSound
###################### Functions ############################
@ -15,7 +15,7 @@ def makeSelection(scr, SELECTIONS, MSGS):
selection_start_y = scr.getyx()[0]
width = scr.getmaxyx()[1]
while inchar != NEWLINE:
while inchar not in [NEWLINE, SPACE]:
# move to start of selections and hightlight current selection
scr.move(selection_start_y, 0)
line = 0