OpenTTD

Tasklist

FS#5619 - Multiple hotkey actions bound to the same key

Attached to Project: OpenTTD
Opened by 3298 (3298) - Wednesday, 26 June 2013, 12:44 GMT
Last edited by andythenorth (andythenorth) - Thursday, 24 August 2017, 20:31 GMT
Type Patch
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
  • p0358 (p0358) (2013-07-20)
Private No

Details

This patch allows binding more than one action to a single key. I originally intended it to be a part of the transparency window patch I posted on the forums to fix a limitation in that patch, but of course the hotkey changes work on their own, too.
The hotkey patch I posted in the transparency patch thread has been split into four parts:
1. Codechange: HotkeyList::CheckMatch can continue a hotkey search now
2. Codechange: Differentiate between normal and tool-activating hotkeys
3. Codechange: Prohibit a tool hotkey from being processed if another tool hotkey was processed on the same keypress
4. Feature(ish): Allow multiple hotkey actions assigned to one key if at most one of them is a tool hotkey
This task depends upon

Closed by  andythenorth (andythenorth)
Thursday, 24 August 2017, 20:31 GMT
Reason for closing:  Won't implement
Additional comments about closing:  _3298: looking back, 5619 is more like a solution in search of a problem
andythenorth: wondered about that
_3298: i wrote it to get around a design flaw in my transparency gui draft, then solved it in another way, and dumped the patch on the bugtracker for others to find
andythenorth: _3298: mind if I close it?
_3298: it's mostly useless
Comment by 3298 (3298) - Sunday, 15 September 2013, 09:51 GMT
Known minor issue: Some hotkey defaults in current trunk are conflicting and would lead to two or three unrelated actions at the same time if this patch is used. These are:
D: skip order, activate dynamite in landscaping toolbar
F: delete order, focus sign list filter box, focus script break-on-log filter box
Number keys: activate infrastructure building tools, switch to companies in script debug window
C: center viewport on cursor, toggle matching case in script debug window
Return: open chat, continue paused script
Zuu just told me on the forum that some of these hotkeys are only available if the script developer tools are turned on.

The obvious solution is to change the defaults, but that might lead to questions like "Why doesn't <some hotkey> work anymore?"

Loading...