376
Suggestions & Requests / Re: Press enter to "send" events
« on: October 29, 2013, 01:49:29 AM »Code: (nexus') [Select]WrenchEvents_Window.getobject(1).accelerator = "enter";
Wrench_Name.altCommand = "wrenchDlg.send();";
Wrench_ItemRespawnTime.altCommand = "wrenchDlg.send();";
Wrench_Window.getobject(4).accelerator = "enter";
wrenchBot_Name.altCommand = "wrenchBotDlg.send();";
wrenchBot_ItemRespawnTime.altCommand = "wrenchBotDlg.send();";
WrenchSound_Name.altCommand = "wrenchSoundDlg.send();";
WrenchSound_Window.getobject(1).accelerator = "enter";
WrenchVehicleSpawn_Name.altCommand = "wrenchVehicleSpawnDlg.send();";
WrenchVehicleSpawn_Window.getobject(1).accelerator = "enter";
so close, do button commands not get triggered by just changing the accelerator?
It turns out, when there are text edit controls in a gui control, no accelerators work except escape. The text edit will just intercept everything else unless you decide to mess with global keymapping stuff like in the RTB overlay, which is kinda overkill. My solution was to just make it so hitting enter in one of the text boxes just calls the same command as the button.

