diff --git a/Readme.html b/Readme.html index 51a8e8ecf..3255a3bad 100644 --- a/Readme.html +++ b/Readme.html @@ -1969,7 +1969,7 @@ the contents separately from the container. This forcefully skips child reagents.

-fast-trade:

Makes Shift-Enter in the Move Goods to Depot and Trade screens select +fast-trade:

Makes Shift-Down in the Move Goods to Depot and Trade screens select the current item (fully, in case of a stack), and scroll down one line.

diff --git a/Readme.rst b/Readme.rst index 378b32667..fac12afe9 100644 --- a/Readme.rst +++ b/Readme.rst @@ -1266,7 +1266,7 @@ Subcommands that persist until disabled or DF quit: in advmode. The issue is that the screen tries to force you to select the contents separately from the container. This forcefully skips child reagents. -:fast-trade: Makes Shift-Enter in the Move Goods to Depot and Trade screens select +:fast-trade: Makes Shift-Down in the Move Goods to Depot and Trade screens select the current item (fully, in case of a stack), and scroll down one line. :military-stable-assign: Preserve list order and cursor position when assigning to squad, i.e. stop the rightmost list of the Positions page of the military diff --git a/plugins/tweak/tweaks/fast-trade.h b/plugins/tweak/tweaks/fast-trade.h index 66e1c9637..a74b7ac81 100644 --- a/plugins/tweak/tweaks/fast-trade.h +++ b/plugins/tweak/tweaks/fast-trade.h @@ -5,7 +5,7 @@ struct fast_trade_assign_hook : df::viewscreen_layer_assigntradest { DEFINE_VMETHOD_INTERPOSE(void, feed, (set *input)) { - if (layer_objects[1]->active && input->count(interface_key::SELECT_ALL)) + if (layer_objects[1]->active && input->count(interface_key::CURSOR_DOWN_FAST)) { set tmp; tmp.insert(interface_key::SELECT); INTERPOSE_NEXT(feed)(&tmp); @@ -25,7 +25,7 @@ struct fast_trade_select_hook : df::viewscreen_tradegoodsst { DEFINE_VMETHOD_INTERPOSE(void, feed, (set *input)) { if (!(is_unloading || !has_traders || in_edit_count) - && input->count(interface_key::SELECT_ALL)) + && input->count(interface_key::CURSOR_DOWN_FAST)) { set tmp; tmp.insert(interface_key::SELECT); INTERPOSE_NEXT(feed)(&tmp);