Hi guys,
I'm working on a Task System in OpenTibia Canary 3.1.2, which allows players to select tasks from a Task Board. When a player clicks on the board, a ModalWindow opens, where they can choose a task. The system works correctly except for one key issue:
I'm working on a Task System in OpenTibia Canary 3.1.2, which allows players to select tasks from a Task Board. When a player clicks on the board, a ModalWindow opens, where they can choose a task. The system works correctly except for one key issue:
Problem with ESC and the default task selection:
- When the task board is opened, the first task is automatically pre-selected.
- If the player presses ESC (on the keyboard), it automatically accepts the first task instead of closing the window.