Great work! You have done it even so perfectly that I had to look twice for the differences when toggling around with the setting option. Having tested around a bit, I found two things which feel a bit strange to me:3298 wrote:I need you to test something. 'Cause this patch is quite trunk-ready now, at least if I caught all the bugs. The big new thing I coded this weekend was that setting to bring back the old window.
- The "Go non-stop to" button changes to "Go non-stop via", if you select this kind of command. However, it doesn't change the label (or more precise: it changes back to "Go non-stop to", not being lowered), if you select "Go via". Comparing with the other choices this behaviour feels odd.
- There still seems to be something fishy with your quick_goto and conditionals: Click on "conditional goto", select one entry. An new order item is inserted. The cursor still is in "goto" mode, but the "Goto" button is not lowered. Yet, if you click on a station, no new item is inserted.
My expectation would have been here that the "goto" button is lowered and the click on the station would lead to a new item in the list (same behaviour as on "goto nearest station"). Yet, you could argue that a conditional order should not trigger "quick goto", as you most likely want to adjust the conditions of the order. In that case the cursor should have the proper mode. Which of the two variants is the better one, I don't know, as I am not using conditionals after all.
To be honest, I wouldn't do it right now. Doing it would risk your good stability. Moreover, I am a person who likes "less keys", so CTRL+K is even one key too much for me That is why the first thing which I did on the patch was to change the hotkey of "Transfer" to "T". Yet, having asked for Shift+Click in the beginning of this thread, I surprisingly got used to it in the meantime.3298 wrote:I've pondered about merging our patch with adf88's (especially his first half, permitting to use Shift in hotkeys issuing DoCommands), because then better hotkeys would be possible (example: K was unload, I assigned Ctrl+K to No Unload; that should have been Shift+K, and Transfer - currently Ctrl+U - should have been Ctrl+K instead). What do you think?
The merge of this patch with "adf88's Shift-DoCommands patch" can still be done afterwards as well: It then will just provide the capability to also allow SHIFT as a modifier for hotkeys. In my mind, the focus of this (series of) patch(es) currently is the provide hotkeys for all commands in the order window (also ahead of clicking) and to rework the order view (including a advanced configuration switch). And that's what it currently does well! It really provides a benefit in my eyes - and that's the reason why I think it belongs to trunk now (modulo bugfixing).