New windows do not gain focus immediately
- [x] Your Hyper.app version is 2.0.0. Please verify your using the latest Hyper.app version
- [x] 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": []
}
Still present in Hyper 3.0.0-canary.3 (canary)
This bug is still present in Hyper 3.4.1 (stable)