You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(shopping): add shortcut to skip buy confirmation dialogs
## Goal
Add a configurable shortcut (e.g. Alt+Right Click) in the Shopping tab to complete purchases immediately without confirmation dialogs. Default is Disabled (NONE). Tooltip warns "Use with caution" in red.
- **Commodities**: Skip both the wide price range warning and final confirmation when shortcut is active on Buy button click.
- **Items**: Skip confirmation when shortcut is active on row click.
## Files Changed
### Config
- `Source_ModernAH/Config/Main.lua` – Added `SHOPPING_SKIP_BUY_CONFIRMATION` option and default
- `Source_ModernAH/Config/Frames/ShoppingAlt.xml` – Added SkipBuyConfirmationShortcut dropdown
- `Source_ModernAH/Config/Mixins/ShoppingAlt.lua` – Wired ShowSettings and Save for the shortcut
### Components
- `Source/Components/Frames/DropDown.xml` – Added tooltip mixin and OnEnter/OnLeave for shortcut dropdowns
### Commodity Buying
- `Source_ModernAH/Tabs/Buying/Commodity/Frames/Main.xml` – Pass mouse button to BuyClicked
- `Source_ModernAH/Tabs/Buying/Commodity/Mixins/Main.lua` – Updated `BuyClicked` and `CheckPurchase`
### Item Buying
- `Source_ModernAH/Tabs/ResultsListing/Mixins/BuyItemRow.lua` – Check shortcut and pass skipConfirmation in `OnClick`
- `Source_ModernAH/Tabs/Buying/Item/Mixins/Dialog.lua` – Updated `ReceiveEvent` to accept skipConfirmation
### Locales
- `Locales/enUS.lua` – Added strings for the new option and tooltip
L["CONFIG_SHOPPING_ALWAYS_CONFIRM_QUANTITY"] ="Always type quantity twice when purchasing commodities from the shopping tab"
502
502
L["CONFIG_SHOPPING_ALWAYS_CONFIRM_QUANTITY_TOOLTIP_HEADER"] ="Confirm quantity every time"
503
503
L["CONFIG_SHOPPING_ALWAYS_CONFIRM_QUANTITY_TOOLTIP_TEXT"] ="By default the quantity is confirmed just once, this makes it so you have to type it a second time to confirm the purchase."
504
+
L["CONFIG_SHOPPING_SKIP_BUY_CONFIRMATION"] ="Shortcut to skip buy confirmation dialogs"
L["CONFIG_SHOPPING_SKIP_BUY_CONFIRMATION_TOOLTIP_TEXT"] ="When using this shortcut (e.g. Alt+Right Click), purchases are completed immediately without showing the confirmation dialog.\n\n|cffff0000Use with caution.|r"
0 commit comments