zed icon indicating copy to clipboard operation
zed copied to clipboard

` and ~ characters are not detected on 65% keyboards

Open ETeissonniere opened this issue 9 months ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

65% keyboards like the Halo 65 map the ` and ~ characters on the "ESC" key. Triggering them is usually done by pressing the "fn" and "esc" keys together. Unfortunately it appears trying to enter them within the code editor or integrated terminal yields no results (meaning that the character is not entered).

Environment

Zed: v0.134.4 (Zed) OS: macOS 14.4.1 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.

2024-05-11T15:31:46-07:00 [INFO] ========== starting zed ==========
2024-05-11T15:31:46-07:00 [INFO] Opening main db
2024-05-11T15:31:46-07:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-05-11T15:31:46-07:00 [INFO] set environment variables from shell:/bin/zsh, path:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/eliottteissonniere/.cargo/bin:/Users/eliottteissonniere/.local/bin
2024-05-11T15:31:46-07:00 [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-05-11T15:31:46-07:00 [INFO] Opening main db
2024-05-11T15:31:46-07:00 [INFO] Opening main db
2024-05-11T15:31:47-07:00 [INFO] set status on client 0: Authenticating
2024-05-11T15:31:47-07:00 [INFO] set status on client 61166: Connecting
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/zksync-contracts/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/openzeppelin-contracts/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/forge-std/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/openzeppelin-contracts/lib/erc4626-tests/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/forge-std/lib/ds-test/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/openzeppelin-contracts/lib/forge-std/.git"
2024-05-11T15:31:47-07:00 [INFO] building git repository, `.git` path in the worktree: "lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/.git"
2024-05-11T15:31:47-07:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-05-11T15:31:47-07:00 [INFO] Node runtime install_if_needed
2024-05-11T15:31:47-07:00 [INFO] starting language server. binary path: "/Users/eliottteissonniere/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/", args: ["/Users/eliottteissonniere/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-05-11T15:31:47-07:00 [INFO] add connection to peer
2024-05-11T15:31:47-07:00 [INFO] add_connection;
2024-05-11T15:31:47-07:00 [INFO] waiting for server hello
2024-05-11T15:31:47-07:00 [INFO] got server hello
2024-05-11T15:31:47-07:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 403, id: 1170209 })
2024-05-11T15:31:47-07:00 [INFO] set status on client 61166: Connected { peer_id: PeerId { owner_id: 403, id: 1170209 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-05-11T15:31:47-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-05-11T22:31:47.673Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-05-11T22:31:47.673Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-05-11T15:31:47-07:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "dace5e1c-dfde-4a4f-938a-e94942626256",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-05-11T15:31:48-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-05-11T22:31:48.041Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-05-11T22:31:48.041Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-05-11T15:34:36-07:00 [INFO] Opening main db

ETeissonniere avatar May 11 '24 22:05 ETeissonniere

I suspect this is the same "dead keys" thing as #5521 which should get fixed by #11712

jansol avatar May 13 '24 14:05 jansol

I suspect this is the same "dead keys" thing as https://github.com/zed-industries/zed/issues/5521 which should get fixed by https://github.com/zed-industries/zed/pull/11712

@jansol unfortunately this is still happening. This appears to be isolated to the ` and ~ in my case. I noticed the PR you merged seem to target Wayland, though this is a Mac OS installation so I am not sure this would this issue.

If it helps, it is looking like I am using the English - US keyboard layout on mac, though English - US International PC and English - ABC also seem to have the same issue.

ETeissonniere avatar Aug 06 '24 18:08 ETeissonniere