How can I replace ± with tilde #82

Closed
nikhilbhardwaj opened this Issue Aug 3, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@nikhilbhardwaj

On my keyboard pressing Shift and ~ results in ±.
I thought that KeyRemap4MacBook could help with the issue but don't know how to find the keycodes for the keys.
Any help?

@tekezo

This comment has been minimized.

Show comment
Hide comment
@nikhilbhardwaj

This comment has been minimized.

Show comment
Hide comment
@nikhilbhardwaj

nikhilbhardwaj Aug 3, 2012

eventType:keyDown code:0xa name:§ flags: misc:characters:§
eventType:keyUp code:0xa name:§ flags: misc:characters:§
eventType:keyMod code:0x38 name:Shift_L flags:Shift misc:characters:
eventType:keyDown code:0xa name:± flags:Shift misc:characters:±
eventType:keyUp code:0xa name:± flags:Shift misc:characters:±
eventType:keyMod code:0x38 name:Shift_L flags: misc:characters:

Here are the keycodes that I get.

I also tried editing the xml file by adding an item like
item
name Fix Tilde name
identifier private.fix_tilde identifier
autogen --KeyToKey-- KeyCode::§ , KeyCode::TAB autogen
/item
but it shows invalid xml

also this is invalid too

Fix Tilde
private.fix_tilde
--KeyToKey-- 0xa , KeyCode::TAB

And I don't know how to find the keycode of tilde as it doesn't get typed in fro my keyboard.

eventType:keyDown code:0xa name:§ flags: misc:characters:§
eventType:keyUp code:0xa name:§ flags: misc:characters:§
eventType:keyMod code:0x38 name:Shift_L flags:Shift misc:characters:
eventType:keyDown code:0xa name:± flags:Shift misc:characters:±
eventType:keyUp code:0xa name:± flags:Shift misc:characters:±
eventType:keyMod code:0x38 name:Shift_L flags: misc:characters:

Here are the keycodes that I get.

I also tried editing the xml file by adding an item like
item
name Fix Tilde name
identifier private.fix_tilde identifier
autogen --KeyToKey-- KeyCode::§ , KeyCode::TAB autogen
/item
but it shows invalid xml

also this is invalid too

Fix Tilde
private.fix_tilde
--KeyToKey-- 0xa , KeyCode::TAB

And I don't know how to find the keycode of tilde as it doesn't get typed in fro my keyboard.

@tekezo

This comment has been minimized.

Show comment
Hide comment
@tekezo

tekezo Aug 13, 2012

Owner

You can change 0xa key by UK_SECTION.

--KeyToKey-- KeyCode::UK_SECTION , KeyCode::TAB

A list of prepared keycode:
https://github.com/tekezo/KeyRemap4MacBook/blob/master/src/bridge/generator/keycode/data/KeyCode.data

You can define your own keycode by symbol_map.
http://pqrs.org/macosx/keyremap4macbook/xml-keycode.html.en

Owner

tekezo commented Aug 13, 2012

You can change 0xa key by UK_SECTION.

--KeyToKey-- KeyCode::UK_SECTION , KeyCode::TAB

A list of prepared keycode:
https://github.com/tekezo/KeyRemap4MacBook/blob/master/src/bridge/generator/keycode/data/KeyCode.data

You can define your own keycode by symbol_map.
http://pqrs.org/macosx/keyremap4macbook/xml-keycode.html.en

@nikhilbhardwaj

This comment has been minimized.

Show comment
Hide comment
@nikhilbhardwaj

nikhilbhardwaj Aug 14, 2012

Thanks so much. This helped me solve my issue.

Thanks so much. This helped me solve my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment