Opened 3 years ago
Last modified 2 years ago
#6064 new defect
Clean up control group hotkeys
Reported by: | wraitii | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
Control group hotkeys are a bit weird: instead of "shift" just modifying what the control group hotkey does, "shift+#" is the whole hotkey.
This leads, in A24, to the issue reported here: https://wildfiregames.com/forum/topic/36639-a24-feedback/page/2/?tab=comments#comment-417787
If instead, the "add to selection " behaviour was just Shift and then also pressing the control group hotkey, this would go away.
Reported by: Player Of 0AD
Change History (7)
comment:1 by , 3 years ago
follow-up: 3 comment:2 by , 3 years ago
See discussion on IRC today.
Imarok argues that it should go:
- 4 : 'CtrlGrp pressed' is sent
- Shift+4: "add to CtrlGrp is pressed" is sent, 'CtrlGrp' is silently un-pressed (no release sent)
- Shift release: "add to CtrGrp is released" is sent, 'CtrlGrp' is silently re-pressed (no 'Pressed' event sent)
- 4 release: 'CtrlGrp' is released.
Wheres right now hotkeys are retriggered on key release, so 'pressed' and 'release' will be sent twice for only one human input.
I do agree , need to look into that, doesn't invalidate the ticket.
comment:3 by , 3 years ago
Replying to wraitii:
See discussion on IRC today.
Imarok argues that it should go:
- 4 : 'CtrlGrp pressed' is sent
- Shift+4: "add to CtrlGrp is pressed" is sent, 'CtrlGrp' is silently un-pressed (no release sent)
- Shift release: "add to CtrGrp is released" is sent, 'CtrlGrp' is silently re-pressed (no 'Pressed' event sent)
- 4 release: 'CtrlGrp' is released.
Wheres right now hotkeys are retriggered on key release, so 'pressed' and 'release' will be sent twice for only one human input.
I do agree , need to look into that, doesn't invalidate the ticket.
Yes, but also (as that is the more reasonable scenario):
comment:6 by , 3 years ago
Milestone: | Alpha 25 → Alpha 26 |
---|
comment:7 by , 2 years ago
Milestone: | Alpha 26 → Backlog |
---|
I don't think I agree with your proposed solution.
If I understood it correctly the issue is following:
Shift
+4
this triggers the add-to-control-group hotkey.Shift
and because4
is still pressed it triggers the control-group hotkey.Is this correct? In that case I don't see how that should be the desired way our hotkey system should work.