diff options
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index df4f23779..eb6404d37 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1674,4 +1674,18 @@ impHandler0(testInfo) return false; } +impHandler(craftKey) +{ +#ifdef EATHENA_SUPPORT + const int slot = (event.action - InputAction::CRAFT_1); + if (slot >= 0 && slot < 9) + { + if (inventoryWindow) + inventoryWindow->moveItemToCraft(slot); + return true; + } +#endif + return false; +} + } // namespace Actions |