zed icon indicating copy to clipboard operation
zed copied to clipboard

Problem with Function Keys on Keyboard 65% [67-keys]

Open brunoalvs opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

I am encountering an issue with my NuPhy Studio Halo65 67-keys keyboard, which has an American layout. Specifically, the problem lies with the keys "`" (backtick) and "~" (tilde backtick), which are located adjacent to the ESC key. To access these characters, I need to use the FN key in conjunction with the respective key. However, this functionality is not working as expected within the open-source text editor, despite functioning correctly in other applications and within the operating system itself.

Details:

Keyboard Model: NuPhy Studio Halo65 67-keys Layout: American (US) Key in Question: "`" (backtick) and "~" (tilde backtick) Functionality Issue: The need to use the FN key to access these characters within the open-source text editor. Expected Behavior: The FN key should function as intended within the text editor, allowing for the proper use of the "`" and "~" characters.

Steps to Reproduce:

  1. Open the Zed
  2. Ensure that the 65% keyboard is connected and recognized.
  3. Attempt to use the "`" and "~" characters by pressing the FN key in conjunction with the respective key.
  4. Observe that the characters may not be input as expected or that the FN key does not seem to function within the text editor.

Environment

Zed: v0.105.5 (stable) OS: macOS 13.5.2 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

brunoalvs avatar Oct 03 '23 18:10 brunoalvs

Wonder if this is related to an issue I noted previously of the Option key not functioning for certain characters.

  • https://github.com/zed-industries/zed/issues/6312

fuzenco avatar Oct 13 '23 17:10 fuzenco

I'm experiencing this same issue, with the same keyboard. Copy/paste a tilde from the Raycast prompt, or any other application that takes text input. I don't have any keybindings updated or changed on Zed, nor any other text editors, I only have this issue with Zed.

justinrclarke avatar Feb 26 '24 18:02 justinrclarke

Having the same issue, until a fix is found, I was able to find this workaround using the key bindings (because copy-pasting the character got annoying):

[
  {
    "bindings": {
      "fn-w": ["workspace::SendKeystrokes", "\u0060"],
      "fn-shift-w": ["workspace::SendKeystrokes", "\u007E"]
    }
  }
]

While looking for this, I also found out that including escape in the keypresses does not work. This is the reason why fn-w (respectively fn-shift-w) are the used keystrokes instead of the default fn-escape / fn-shift-escape

Cosmeeeen avatar Mar 01 '24 09:03 Cosmeeeen

Having the same issue, until a fix is found, I was able to find this workaround using the key bindings (because copy-pasting the character got annoying):

[
  {
    "bindings": {
      "fn-w": ["workspace::SendKeystrokes", "\u0060"],
      "fn-shift-w": ["workspace::SendKeystrokes", "\u007E"]
    }
  }
]

While looking for this, I also found out that including escape in the keypresses does not work. This is the reason why fn-w (respectively fn-shift-w) are the used keystrokes instead of the default fn-escape / fn-shift-escape

Great, I'll do the same. But in my case the fn-w key is used to switch between the devices connected.

brunoalvs avatar Mar 12 '24 15:03 brunoalvs

Same issue here.

amitchahalgits avatar May 05 '24 05:05 amitchahalgits

Same issue here. I use keybindings for resolve, but... It's not funny

[
  {
    "context": "Editor",
    "bindings": {
      "alt-'": ["workspace::SendKeystrokes", "`"]
    }
  }
]

r0ob3n1337 avatar Jul 22 '24 11:07 r0ob3n1337