diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-13 05:57:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-13 05:57:34 +0000 |
commit | a1d6de5664c04377b804aeac7d72a2e571ff1183 (patch) | |
tree | fd0d4a5aabdc907d7e6d9657938ef578cf573213 | |
parent | f658b1cf99a8c2e277dbf9a8601a9e63e123a745 (diff) | |
download | drakx-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.pm | 7 |
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}) { |