Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Pls add CTRL+F4 to close tab

Developers
wd3
2005-02-25
2013-04-26
  • wd3
    wd3
    2005-02-25

    # file "drShortcuts.py", line 339
            # 2005-02-19 add shortcut CTRL+F4 to close tab
            elif(Shortcuts[x].Name == "Close"):
                if useDefault:
                    Shortcuts[x].Keycode = wx.WXK_F4
                    Shortcuts[x].Control = 1
                shortcutsActionArray.append(frame.OnClose)
                shortcutsArgumentsArray.append("frame, event")

    # file "drpython.py", line 698
                # 2005-02-19 prevent windows version startup error
                    if self.ddirectory == "~" and self.PLATFORM_IS_WIN:
                        self.ddirectory = self.userhomedirectory
                    else:
                        try:
                            os.chdir(self.ddirectory)
                        except:
                            self.ShowMessage('Error Changing to Default Directory: "%s"' % (self.ddirectory), 'Preferences Error')
                            self.ddirectory = self.userhomedirectory

     
    • wd3
      wd3
      2005-02-25

      sorry, for 3.10.10 it must be:-

      # file "drShortcuts.py", line 339
              # dy, 2005-02-19 add shortcut CTRL+F4 to close tab
              elif(Shortcuts[x].Name == "Close"):
                  if useDefault:
                      Shortcuts[x] = 'Control' + str(wx.WXK_F4)
                  shortcutsActionArray.append(frame.OnClose)
                  shortcutsArgumentsArray.append("frame, event")

       
    • Hey.

        A default shortcut for close is a good idea (you can always change it in prefs).  I made it ctrl + w (default on linux), as ctrl + f4 is usaully reserved.  Thanks!

      For the startup, I do not know that it is an issue with 3.10.10.  (Is it still?)