Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Triangle when I press delete on Mac laptop keyboard?  (Read 1045 times)

Wizard

  • Bay Watcher
    • View Profile
Triangle when I press delete on Mac laptop keyboard?
« on: April 06, 2011, 01:34:35 am »

Hi there,
I have a problem where when I try to name a dwarf or something then make a mistake and press delete (backspace on a windows computer i think). I found a thread that describes how you fix this problem by modifying key bindings, but I just couldn't figure it out.
Could someone please give me clear instructions as to how to do this?

Many thanks.
Logged

Syff

  • Bay Watcher
    • View Profile
Re: Triangle when I press delete on Mac laptop keyboard?
« Reply #1 on: April 06, 2011, 02:43:28 am »

Firstly, it's on the bugtracker.

Go to /init/interface.txt and find this part.
Code: [Select]
...
[BIND:STRING_A126:REPEAT_SLOW]
[KEY:~]
[BIND:STRING_A127:REPEAT_SLOW]
[KEY:]
[BIND:STRING_A128:REPEAT_SLOW]
[KEY:€]
...

While it may look blank, there's a character under STRING_A127.  Change that to something else, and things should work fine.  I usually just do this.
Code: [Select]
...
[BIND:STRING_A126:REPEAT_SLOW]
[KEY:~]
[BIND:STRING_A127:REPEAT_SLOW]
[KEY:€]
[BIND:STRING_A128:REPEAT_SLOW]
[KEY:€]
...
Because honestly, I'm never gonna be entering that character anyway.

Hope that helps.
Logged

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Triangle when I press delete on Mac laptop keyboard?
« Reply #2 on: April 06, 2011, 03:59:36 am »

Seems like the problem is that the OS is sending the raw key information (the "triangle" or "Delta" is often the representation of ASCII 127, the delete character) and DF is just using it.  That's very very strange.
Logged
I like fortresses because they are still underground.

Forumite

  • Bay Watcher
    • View Profile
Re: Triangle when I press delete on Mac laptop keyboard?
« Reply #3 on: April 06, 2011, 06:33:24 am »

I have the same problem, but holding shift-delete for a few seconds fixes it by deleting the whole line.
Logged
"The ability to quote is a serviceable substitute for wit." - W. Somerset Maugham

Wizard

  • Bay Watcher
    • View Profile
Re: Triangle when I press delete on Mac laptop keyboard?
« Reply #4 on: April 06, 2011, 07:13:27 am »

Thanks guys, perfect!
Logged