Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Improved key binding customization; Non-modifier key combinations  (Read 542 times)

Adam Mantine

  • Bay Watcher
    • View Profile

I would like to be able to make custom multiple key keybindings where neither of the keys are modifier keys.

I have a wireless keyboard that for some is designed without some of the normal modifier keys (there's no right shift, for example) and it would help me immensely if I were able to bind key combinations using the slash key instead of the shift key
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Improved key binding customization; Non-modifier key combinations
« Reply #1 on: June 12, 2016, 10:34:46 pm »

I would like to be able to make custom multiple key keybindings where neither of the keys are modifier keys.

I have a wireless keyboard that for some is designed without some of the normal modifier keys (there's no right shift, for example) and it would help me immensely if I were able to bind key combinations using the slash key instead of the shift key
A keyboard's behavior when two non-modifier keys are pressed can be very hardware dependent.  What I think might work though is to make an escape key that functions like a modifier (this is basically how Lotus 123 did things back in a time before time).  Note that I don't mean the physical Esc key on the keyboard, but rather some special character that is used to put the input into a special mode.  (The Esc key was originally intended as an escape character, but most modern programs including DF use it for something else.)

For example, the game's key definition CUSTOM_ESC_F would be invoked by pressing the defined escape key then lowercase f.  To undo an escape, press the escape key again.  This could be useful for odd keyboard layout and for players who otherwise would be using the Sticky Keys accessibility option.  Slash would not work well as an escape character since it already has a default use in the game.  ` (accent-grave) might work.

I'd like to see the escape key handled exactly like a modifier in keybindings, for example [BIND:CUSTOM_ESC_F:REPEAT_NOT][SYM:8:f].

Of course, while we're at it, I'd like to be able to sum modifiers so that [SYM:3:f] is Control-Shift-F, and maybe even differentiate the left and right versions of each physical modifier key if that wouldn't get too deep in the weeds of hardware drivers.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Improved key binding customization; Non-modifier key combinations
« Reply #2 on: June 13, 2016, 12:55:00 am »

Sounds bigger than a DF issue. You could probably get software that replaces one keypress with another. An AutoHotkey script might work.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?