summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-13 05:57:34 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-13 05:57:34 +0000
commita1d6de5664c04377b804aeac7d72a2e571ff1183 (patch)
treefd0d4a5aabdc907d7e6d9657938ef578cf573213
parentf658b1cf99a8c2e277dbf9a8601a9e63e123a745 (diff)
downloaddrakx-a1d6de5664c04377b804aeac7d72a2e571ff1183.tar
drakx-a1d6de5664c04377b804aeac7d72a2e571ff1183.tar.gz
drakx-a1d6de5664c04377b804aeac7d72a2e571ff1183.tar.bz2
drakx-a1d6de5664c04377b804aeac7d72a2e571ff1183.tar.xz
drakx-a1d6de5664c04377b804aeac7d72a2e571ff1183.zip
ctrl-alt-delete allows to restart install
-rw-r--r--perl-install/ugtk2.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 7e6468778..dd50615f5 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -976,10 +976,13 @@ sub new {
if ($::isInstall) {
$::WizardWindow->signal_connect(key_press_event => sub {
my (undef, $event) = @_;
- my $d = ${{ $Gtk2::Gdk::Keysyms{F2} => 'screenshot' }}{$event->keyval};
+ my $d = ${{ $Gtk2::Gdk::Keysyms{F2} => 'screenshot', $Gtk2::Gdk::Keysyms{Delete} => 'restart' }}{$event->keyval};
if ($d eq 'screenshot') {
common::take_screenshot();
- }
+ } elsif ($d eq 'restart' && $event->state >= ['control-mask', 'mod1-mask']) {
+ log::l("restarting install");
+ $o->exit(0x35);
+ }
0;
});
} elsif (!$o->{isEmbedded}) {