Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved keyboard support in inventory #191

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Norfolc
Copy link

@Norfolc Norfolc commented Jun 1, 2024

  • Added support for the following keys in all inventory types (inventory, use inventory on, loot, trade dialogs):
    • Up - scroll inventory one item up
    • Down - scroll inventory one item up
    • Home - scroll to the beginning of the inventory
    • End - scroll to the end of the inventory
    • Page Up - scroll inventory one page up (6 items) - except for trade dialog where the key scrolls up a "table" (proposals)
    • Page Down - scroll inventory one page down (6 items) - except for trade dialog where the key scrolls down a "table" (proposals)
  • Added support for the following keys in all target inventory types (in loot, trade dialogs):
    • Ctrl+Up - scroll target inventory one item up
    • Ctrl+Down - scroll target inventory one item up
    • Ctrl+Home - scroll to the beginning of the target inventory
    • Ctrl+End - scroll to the end of the target inventory
    • Ctrl+Page Up - scroll target inventory one page up (6 items) - except for trade dialog where the key scrolls up a target "table" (proposals)
    • Ctrl+Page Down - scroll inventory one page down (6 items) - except for trade dialog where the key scrolls down a target "table" (proposals)
  • In loot dialog where there are multiple targets on the same tile, switching between the targets can be made with Left/Right instead of Page Up/Page Down.
  • Added keyboard support to move/timer dialog:
    • Up key to increase value
    • Down key to decrease value
    • A key to select all
  • [input] Fixed Page Up key not mapped correctly
  • Added support for fast items moving:
    • Left clicking on an item with Ctrl key will transfer one item without the need to drag and drop it.
    • Left clicking on an item with Ctrl+Shift keys will transfer all stack (up to 999) without the need to drag and drop them
    • Left clicking on an item with Shift key will take all stack (up to 999) items and will allow to drop it with move dialog.

@dje4321
Copy link

dje4321 commented Jun 2, 2024

A feature on my TODO list has been to enable whole stack transfers with Ctrl+Click/Enter. Useful when you want to transfer lots of items or items that exceed the 999 stack count without having to deal with the god awful UI that plagues these games

@Norfolc
Copy link
Author

Norfolc commented Jun 2, 2024

@dje4321 partially resolve issue with 999 items with PR #192 that increases that number up to 9999.

@Norfolc
Copy link
Author

Norfolc commented Jun 4, 2024

@dje4321 I've added a feature to transfer items with Ctrl and Shift keys.
Left clicking on an item with Ctrl key will transfer one item without the need to drag and drop it.
Left clicking on an item with Ctrl+Shift keys will transfer all stack without the need to drag and drop them - actually it transfers not all items but maximum number of items that is allowed by move dialog - 999. With the fix #192 this number will be increased to 9999.
Left clicking on an item with Shift key will take all stack (up to 999) items and will allow to drop it with move dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants