Author Topic: HHKB keyremap issue (´)  (Read 2639 times)

0 Members and 1 Guest are viewing this topic.

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
HHKB keyremap issue (´)
« on: Tue, 04 March 2014, 04:16:14 »
Got a bobbling fresh HHKB Type-S in front of me. Using it at work on a Mac.

I´m from Norway, so I use a norwegian layout. As you might´ve noticed I´m using the wrong "´", because there is no key for it atm, and I can´t seem to find a way to remap it on KeyRemap4MacBook.

If someone could help me creating a custom code for it, I would be grateful. I´m willing to sacrifice another key for it.



EDIT:

The solution:

Code: [Select]
<item>
        <name>Fix norwegian layout</name>
        <appendix>changes > to '</appendix>
        <identifier>private.norfix</identifier>
        <autogen>--KeyToKey--
                KeyCode::BACKQUOTE,
                KeyCode::DANISH_DOLLAR
        </autogen>
</item>
« Last Edit: Wed, 05 March 2014, 10:13:30 by varslot »

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline adhoc

  • Posts: 216
  • Location: Slovenia
Re: HHKB keyremap issue (´)
« Reply #1 on: Tue, 04 March 2014, 06:35:00 »
If you hold down left alt and type 39 on keypad you get apostrophe. This means you can't do it with HHKB as there is no keypad, but you can generate a script to hotkey it now.

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #2 on: Tue, 04 March 2014, 06:54:37 »
If you hold down left alt and type 39 on keypad you get apostrophe. This means you can't do it with HHKB as there is no keypad, but you can generate a script to hotkey it now.
Yes, this is exactly what I am requesting. I already got some help to remap arrow keys to Control+WASD. I have no idea how to arrange the script, so that is why I am seeking help.

As I am a designer, I do not use "<", so I can sacrifice this key for the apostrophe.

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #3 on: Tue, 04 March 2014, 07:49:32 »
Windows?

edit: nvm. I didn't see you were using Mac. Sorry. Hope someone can help you out.
« Last Edit: Tue, 04 March 2014, 07:53:29 by esoomenona »

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #4 on: Tue, 04 March 2014, 07:53:39 »
Windows?
It is stated in the description. It is on Mac.

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #5 on: Tue, 04 March 2014, 07:55:23 »
Idea: do you have another keyboard that has an apostrophe you can press? And if so, does KeyRemap4MacBook use scan codes or something of the like to modify keys? If so, plug in the other keyboard, press it, and see what scan code registers, then, use the remap program to remap what you want to that scan code.

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #6 on: Tue, 04 March 2014, 09:22:42 »
Idea: do you have another keyboard that has an apostrophe you can press? And if so, does KeyRemap4MacBook use scan codes or something of the like to modify keys? If so, plug in the other keyboard, press it, and see what scan code registers, then, use the remap program to remap what you want to that scan code.
We have multiple boards at work, and even so I would not be able to arrange the script myself without some help. I am sorry to say that I have no experience with scripting.

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #7 on: Tue, 04 March 2014, 11:25:47 »
Can you show me what your current one looks like right now? You can use the
Code: [Select]
[code]tag.
« Last Edit: Tue, 04 March 2014, 11:27:19 by esoomenona »

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #8 on: Tue, 04 March 2014, 12:19:27 »
Can you show me what your current one looks like right now? You can use the
Code: [Select]
[code]tag.

Code: [Select]
<?xml version="1.0"?>
<root>
      <item>
        <name>Left Control + wasd for Arrow Keys</name>
        <identifier>private.l_control_hhkb_arrows</identifier>
        <autogen>--KeyToKey--
            KeyCode::A, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_LEFT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::D, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_RIGHT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::W, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_UP
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::S, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_DOWN
        </autogen>
    </item>   
</root>

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #9 on: Tue, 04 March 2014, 14:10:43 »
So then, you can give this a shot, and see if it works. If not, we may have to dig further.

Code: [Select]
<?xml version="1.0"?>
<root>
      <item>
        <name>Left Control + wasd for Arrow Keys</name>
        <identifier>private.l_control_hhkb_arrows</identifier>
        <autogen>--KeyToKey--
            KeyCode::A, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_LEFT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::D, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_RIGHT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::W, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_UP
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::S, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_DOWN
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::´
            KeyCode::'
        </autogen>
    </item>   
</root>



Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #10 on: Tue, 04 March 2014, 14:25:14 »
So then, you can give this a shot, and see if it works. If not, we may have to dig further.

Code: [Select]
<?xml version="1.0"?>
<root>
      <item>
        <name>Left Control + wasd for Arrow Keys</name>
        <identifier>private.l_control_hhkb_arrows</identifier>
        <autogen>--KeyToKey--
            KeyCode::A, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_LEFT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::D, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_RIGHT
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::W, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_UP
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::S, ModifierFlag::CONTROL_L,
            KeyCode::CURSOR_DOWN
        </autogen>
        <autogen>--KeyToKey--
            KeyCode::´
            KeyCode::'
        </autogen>
    </item>   
</root>
Aight, thanks! I'll test it at work tomorrow.

What about these?
Code: [Select]
<name>Left Control + wasd for Arrow Keys</name>
        <identifier>private.l_control_hhkb_arrows</identifier>
I know the <name> code is the name that displays in the sofware to enable it, but what about the <identifier>?

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #11 on: Tue, 04 March 2014, 14:36:32 »
From reading it, it seems to just be a description. I mean, I can't rightly see how that string could do anything, unless the software recognizes keyboards in particular, and even then, without the modifier in the code, it shouldn't make a difference. Or perhaps it's the name of the file? But I don't really know the software, and I can't look at it and play with it, so I can't rightly say what that does.

The only thing I can think of if that doesn't work, is to find a way to get the virtual codes for both the ´ and ', and then place those codes in place of the actual characters in the above code, and see if that registers properly. And of course, to get the apostrophe code, you'd need that other keyboard I mentioned.

Offline atlas3686

  • HHKB Elite
  • * Esteemed Elder
  • Posts: 2342
  • Location: South Africa
  • Preacher at the church of Thorpe
Re: HHKB keyremap issue (´)
« Reply #12 on: Wed, 05 March 2014, 01:57:15 »
I've pm'd you, should be sorted.

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: HHKB keyremap issue (´)
« Reply #13 on: Wed, 05 March 2014, 06:05:54 »
Why so hidden?

Offline atlas3686

  • HHKB Elite
  • * Esteemed Elder
  • Posts: 2342
  • Location: South Africa
  • Preacher at the church of Thorpe
Re: HHKB keyremap issue (´)
« Reply #14 on: Wed, 05 March 2014, 06:19:23 »
Why so hidden?

Oh no reason just easier to discuss quickly.

Here is the code if anyone else is interested:

<item>
  <name>Fix norwegian layout</name>
  <appendix>changes > to '</appendix>
  <identifier>private.norfix</identifier>
    <autogen>--KeyToKey--
      KeyCode::DOT, ModifierFlag::SHIFT_L, KeyCode::QUOTE
    </autogen>
</item>

or if you just want to change the funny ´ directly into a ' you just need this:

<item>
  <name>Fix norwegian layout</name>
  <appendix>changes ´ to '</appendix>
  <identifier>private.norfix</identifier>
    <autogen>--KeyToKey--
       KeyCode::BACKQUOTE, KeyCode::QUOTE
    </autogen>
</item>

Offline varslot

  • Thread Starter
  • Posts: 58
  • Location: Norway
    • Portfolio
Re: HHKB keyremap issue (´)
« Reply #15 on: Wed, 05 March 2014, 07:27:28 »
Why so hidden?

Oh no reason just easier to discuss quickly.

Here is the code if anyone else is interested:

<item>
  <name>Fix norwegian layout</name>
  <appendix>changes > to '</appendix>
  <identifier>private.norfix</identifier>
    <autogen>--KeyToKey--
      KeyCode::DOT, ModifierFlag::SHIFT_L, KeyCode::QUOTE
    </autogen>
</item>

or if you just want to change the funny ´ directly into a ' you just need this:

<item>
  <name>Fix norwegian layout</name>
  <appendix>changes ´ to '</appendix>
  <identifier>private.norfix</identifier>
    <autogen>--KeyToKey--
       KeyCode::BACKQUOTE, KeyCode::QUOTE
    </autogen>
</item>

Just for the sake of closing this thread, I want to inform that this code doesn't work.

We sorted out the issue and ended up with this:

Code: [Select]
<item>
        <name>Fix norwegian layout</name>
        <appendix>changes > to '</appendix>
        <identifier>private.norfix</identifier>
        <autogen>--KeyToKey--
                KeyCode::BACKQUOTE,
                KeyCode::DANISH_DOLLAR
        </autogen>
</item>

Norwegian layout have different names.

Big thanks to atlas3686!

Ducky Shine 3 (MX blue)


HHKB Pro 2 Type-S