diff options
| author | Karel Zak <kzak@redhat.com> | 2014-07-15 12:41:30 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-07-15 12:41:30 +0200 |
| commit | ad5d45c046583aa9aa7bb2fb09185f7aa08b4270 (patch) | |
| tree | 3b932448750c8b1b23ef6f7d12b254ff514203d6 /disk-utils/cfdisk.c | |
| parent | 8fc37981cf15868c70d58594c4878e73283e3155 (diff) | |
| download | util-linux-ad5d45c046583aa9aa7bb2fb09185f7aa08b4270.tar.gz | |
cfdisk: make menus sensitive to ESC
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
| -rw-r--r-- | disk-utils/cfdisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 17a3bc4151..bcc7cfdfbd 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1513,6 +1513,7 @@ static struct fdisk_parttype *ui_get_parttype(struct cfdisk *cf, if (d) t = (struct fdisk_parttype *) d->userdata; goto done; + case KEY_ESC: case 'q': case 'Q': goto done; @@ -1581,6 +1582,7 @@ static int ui_create_label(struct cfdisk *cf) if (d) rc = fdisk_create_disklabel(cf->cxt, d->name); goto done; + case KEY_ESC: case 'q': case 'Q': goto done; |
