~darkstarsword/wicd/fixes

« back to all changes in this revision

Viewing changes to curses/wicd-curses.py

  • Committer: Ian Munsie
  • Date: 2009-08-29 08:58:42 UTC
  • Revision ID: darkstarsword@gmail.com-20090829085842-s0p68wkw1paeuu6h
Changed Alt+Enter to F10

Show diffs side-by-side

added added

removed removed

Lines of Context:
583
583
 
584
584
    def init_other_optcols(self):
585
585
        # The "tabbed" preferences dialog
586
 
        self.prefCols = OptCols( [ ('meta enter','OK'),
 
586
        self.prefCols = OptCols( [ ('F10','OK'),
587
587
                                   ('Page Up','Tab Left',),
588
588
                                   ('Page Down', 'Tab Right'),
589
589
                                   ('esc','Cancel') ], self.handle_keys)
590
 
        self.confCols = OptCols( [ ('meta enter','OK'),
 
590
        self.confCols = OptCols( [ ('F10','OK'),
591
591
                                   ('esc','Cancel') ],self.handle_keys)
592
592
 
593
593
    # Does what it says it does
902
902
                if  k == 'esc' or k == 'q' or k == 'Q':
903
903
                    self.restore_primary()
904
904
                    break
905
 
                #This will depend on the terminal capabilities,
906
 
                #this should work for alt sending two bytes
907
 
                #as escape followed by the code ("meta ...")
908
 
                #as well as 8 bit mode (0x1.......)
909
 
                if k == 'meta enter' or k == u'\x8d':
 
905
                if k == 'f10':
910
906
                    self.diag.save_settings()
911
907
                    self.restore_primary()
912
908
                    break