vercel / vercel/hyper

New windows do not gain focus immediately

Open
#3,226 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • Your Hyper.app version is 2.0.0. Please verify your using the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

  • Any relevant information from devtools? (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
    N/A

  • Is the issue reproducible in vanilla Hyper.app?
    Yes

Issue

When opening a new window with Cmd-N, if I type too fast, the first few keystrokes still go to the old window. For example, if I do Cmd-N python, depending how fast I type, the old window will have "pyth" and the new window will have "on". This contrasts with opening a new tab, where focus is given immediately to the new tab, and the old tab receives no keystrokes.

  • Hyper version: undefined "2.0.0"

  • OS ARCH VERSION: darwin x64 18.2.0

  • Electron: 1.8.4 LANG: undefined

  • SHELL: /bin/zsh TERM: undefined

~/.hyper.js contents
        
          {
  "updateChannel": "stable",
  "fontSize": 12,
  "fontFamily": "Fira Code, Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
  "fontWeight": "normal",
  "fontWeightBold": "bold",
  "cursorColor": "rgba(248,28,229,0.8)",
  "cursorAccentColor": "#000",
  "cursorShape": "BLOCK",
  "cursorBlink": false,
  "foregroundColor": "#fff",
  "backgroundColor": "#000",
  "selectionColor": "rgba(248,28,229,0.3)",
  "borderColor": "#333",
  "css": "",
  "termCSS": "",
  "showHamburgerMenu": "",
  "showWindowControls": "",
  "padding": "12px 14px",
  "colors": {
    "black": "#000000",
    "red": "#C51E14",
    "green": "#1DC121",
    "yellow": "#C7C329",
    "blue": "#0A2FC4",
    "magenta": "#C839C5",
    "cyan": "#20C5C6",
    "white": "#C7C7C7",
    "lightBlack": "#686868",
    "lightRed": "#FD6F6B",
    "lightGreen": "#67F86F",
    "lightYellow": "#FFFA72",
    "lightBlue": "#6A76FB",
    "lightMagenta": "#FD7CFC",
    "lightCyan": "#68FDFE",
    "lightWhite": "#FFFFFF"
  },
  "shell": "",
  "shellArgs": [
    "--login"
  ],
  "env": {},
  "bell": "SOUND",
  "copyOnSelect": false,
  "defaultSSHApp": true
}
      {

"plugins": [],
"localPlugins": []
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Cmd-N new-window entry point and compare its focus behavior with opening a new tab. Reproduce the issue on macOS by typing immediately after Cmd-N, then verify that all keystrokes reach the new window and none remain in the old one.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, macos, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.