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?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
# 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
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?)