Keyboard Shortcuts

Project:Virtual Combat Cards Project
Version:0.95.1
Component:User interface
Category:feature request
Priority:normal
Assigned:Nebulorum
Status:closed
Description

Hi,

Could you add some keyboard shortcuts?
For example
ctrl+b start round
ctrl+e end round
ctrl+m mark target, when you do this, you could have a popup window asking from which source it comes and when it ends.
ctrl+d deal damage and a popup window where you can specify the amount
ctrl+h for heal and a popup window where you can specify the amount

of course these are only suggestion :)

kind regards
Asturia

#1

Assigned to:Anonymous» Nebulorum

Have done some testing and fiddling. I failed to get Ctrl+S to work (help with Swing welcome). However Alt+S works. The ideas is to have these keys as a replacement for pressing the buttons:

Alt+S and Alt+E
Start and end round respectively
Alt+H and Alt+D
Apply the hit points in the input box as Heal or Damage, respectively
Alt+M or Ctrl+M (maybe a menu option)
Here some work is needed, but I believe the best way to have this is have this shortcut add a regular figher mark: mark by current active combatant until the end of the next round. More complex marks can be added the normal way.

This should really make VCC faster, since these are some of the common actions.

#2

Quick note, I managed to get other keystrokes working so now anyone should be possible. Still need some work on the marking story.

#3

Status:active» patch (code needs work)

Implemented the following short-cuts:

  • Ctrl+S and Ctrl+E: Start and end round
  • Ctrl+T: Set Temporary HP
  • Ctrl+H: Head
  • Ctrl+D: Damage
  • Ctrl+A: Set the Active Combatant on the effect panel as the currently selected combatant on the combat sequence
  • Ctrl+M: Mark the current combatant using the combatant on the effect panel.

These short-cuts should really reduce the amount of clicking, and make things easier.

To test it, extract the content of the file to the directory where VCC is installed (the package contains only install.zip)

#4

Hey,

Ctrl+H only works if you click out of ANY text input box inside the program. It behaves like the backspace key if the cursor is inside a text input box. If however, you click elsewhere in the program, then it works as required.

This means that you may as well just click the heal box with the mouse as you have to move the mouse and click elsewhere anyway in order for Ctrl+H to work.

I noticed that it did this in a previous version as well when I was randomly trying Ctrl+ shortcuts...

Joe

#5

Well observed, Ctrl+H is bound on the Backspace command on all the text fields. This is the default behavior for the components on Swing. Which means we have one of these options:

  1. Leave it the way it work now; makes sense since you will most likely be applying healing on the sequence table, by selecting a combatant then pressing the Ctrl+H short cut.
  2. Unbind Ctrl+H from all the text components; this is really tough since every single one of them has to be changed.
  3. Change to something like Alt+H; but in this case better change all of them to Alt+key.

Although (1) means that interface will behave differently depending on context, I think it works. However if we want to go for a constant interface I would suggest going to option (3). The other alternative is really hard to make it work.

There a actually a lot of keystroke binding on the default interface. On the sequence table Ctrl+A would select all combatant (which ends up meaning pick the last one). I think there are less think bound to the Alt key.

#6

Changed all the short cuts to use Alt instead of Control. Also fixed some minor issues and added a help on the status bar when the sequence table is selected.

#7

Status:patch (code needs work)» fixed

Tested and seem to work fine.

#8

Version:0.95.0» 0.95.1

In 0.95.1 the new shortcut of selecting the first combatant on the list (Ctrl+F) is a great idea. Thanks for that!

Any chance this could be extended into being able to click shortcuts to navigate the 'curser' to different areas of vcc interface?

Joe

#9

Ctrl+F was the first short-cut available since 0.30 I think.

As for the short-cuts for navigation I think a new issue would be the best way to handle that. Can you open one?

#11

Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.