chore(gui/messagebox): update keybindings

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-10-05 00:39:06 +08:00
parent e1491234be
commit c3208072cd

View file

@ -247,37 +247,38 @@ def send_signal(signal, panel):
'SIGTERM',
't',
panel.selection.terminate,
keys=('T'),
keys=('T',),
attrs=(
dict(y=0, x=0, width=7, fg='red'),
dict(y=0, x=3, width=1, fg='red', attr='underline'),
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
),
),
MessageBox.Option(
'SIGKILL',
'k',
panel.selection.kill,
keys=('K'),
keys=('K',),
attrs=(
dict(y=0, x=0, width=7, fg='red'),
dict(y=0, x=3, width=1, fg='red', attr='underline'),
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
),
),
MessageBox.Option(
'SIGINT',
'i',
panel.selection.interrupt,
keys=('I'),
keys=('I',),
attrs=(
dict(y=0, x=0, width=6, fg='red'),
dict(y=0, x=3, width=1, fg='red', attr='underline'),
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
),
),
MessageBox.Option(
'Cancel',
'c',
None,
attrs=(dict(y=0, x=0, width=1, attr='underline'),),
keys=('C',),
attrs=(dict(y=0, x=0, width=1, attr='bold | underline'),),
),
],
default=default,