Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to map some consumer_key_code: "ac_back", "ac_forward" #2956

Closed
joonhyuk opened this issue Jan 7, 2022 · 4 comments
Closed

Unable to map some consumer_key_code: "ac_back", "ac_forward" #2956

joonhyuk opened this issue Jan 7, 2022 · 4 comments

Comments

@joonhyuk
Copy link

joonhyuk commented Jan 7, 2022

type:down            HID usage: 12,548    name:{"consumer_key_code":"ac_back"}                         misc:
type:up              HID usage: 12,548    name:{"consumer_key_code":"ac_back"}                         misc:
type:down            HID usage: 12,549    name:{"consumer_key_code":"ac_forward"}                      misc:
type:up              HID usage: 12,549    name:{"consumer_key_code":"ac_forward"}                      misc:

I wanna remap "ac_back", "ac_forward" to browser back/forward.
Those are from thinkpad keyboard (more precisely, "TEX Shinobi")

Karabiner Eventviewer could recognize them but simple mapping not worked.
Of course, complex modification with them also unavailable.

(Seems to be known issue)

@Muirium
Copy link

Muirium commented Jan 9, 2022

Here's one of my rules using a "consumer_key_code" class of key. I found you have to spell out the "consumer_key_code" for yourself, then it seems to work just fine.

  "description": "⚙️ Preferences: ⌥ Option + ⏩ ⇨ Software Update Preferences Pane",
  "manipulators": [
    {
      "type": "basic",
      "from": {
        "consumer_key_code": "fast_forward",
        "modifiers": {
          "mandatory": [
            "option"
          ],
          "optional": [
            "caps_lock"
          ]
        }
      },
      "to": [
        {
          "shell_command": "open /System/Library/PreferencePanes/SoftwareUpdate.prefPane"
        }
      ]
    }
  ]
}

@akak0000
Copy link

akak0000 commented Jul 28, 2023

This rule isn't working for me:

 {
                      "description": "Y to undo 2",
                      "manipulators": [
                        {
                          "from": {
                            "consumer_key_code": "al_terminal_lock_or_screensaver"
                          },
                          "to": [
                            {
                              "key_code": "z",
                              "modifiers": [
                                "left_command"
                              ]
                            }
                          ],
                          "type": "basic"
                        }
                      ]
                    }

Any ideas why? I'm using Event Viewer to make sure that that is the correct key firing which it is

@akak0000
Copy link

image

@joonhyuk joonhyuk closed this as completed Oct 9, 2023
@robertrosman
Copy link

Just came here to say that consumer_key_code works great for me too, so you can use this config to map ac_back and ac_forward to Google chrome back/forward:

{
    "description": "Navigation keys (ac_back and ac_forward)",
    "manipulators": [
        {
            "from": {
                "consumer_key_code": "ac_back",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "8",
                    "modifiers": [
                        "left_command",
                        "right_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "consumer_key_code": "ac_forward",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "9",
                    "modifiers": [
                        "left_command",
                        "right_option"
                    ]
                }
            ],
            "type": "basic"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants