[MC-3643] CTRL / CMD key get stuck on OS X / Text Box Backspace deletes whole word or whole line on Mac and Linux Created: 21/Nov/12 Updated: 17/Jun/21 Resolved: 25/Oct/17 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.5, Minecraft 1.4.7, Minecraft 1.7.4, Minecraft 14w07a, Minecraft 1.7.10, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 1.8, Minecraft 1.8.1-pre2, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.5, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w34a, Minecraft 15w41b, Minecraft 15w44b, Minecraft 15w45a, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.9.4, Minecraft 16w21b, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w35a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.2 |
| Fix Version/s: | Minecraft 17w43a |
| Type: | Bug | ||
| Reporter: | Zack Hixon | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 46 |
| Labels: | backspace, chat, cmd, command-key, hilight, input, keyboard, lwjgl, selection, sticky-keys, typing | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Game Mode: | Creative | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
When I open my inventory and go to the search tab, I enter something in and everything goes wonky. I am done searching so I press backspace and the entire search term disappears. I enter the chat to say hi to my friend who just joined, I misspelled his name and I tried deleting the accidental character, and the entire name disappears. Say his name was George, and I type Goerge instead. I would press backspace, and all "Goerge" would disappear. (Get what I mean?) This happens until I completely re-start the game. Delete whole word: CTRL is stuck, delete whole line: SHIFT is stuck. Steps to reproduce on OS X:
|
| Comments |
| Comment by Alan Klas [ 17/Jun/21 ] |
|
This is happening for me in 1.16.5 on windows, hitting the alt or windows key fixes it temporairly i don't remember which one |
| Comment by [Mod] Pokechu22 [ 08/Apr/18 ] |
|
17w43a is a 1.13 development snapshot; this issue is fixed in prerelease builds but not current releases. |
| Comment by Flaming Dorito [ 08/Apr/18 ] |
|
Currently on the latest Minecraft 1.12.2, a clean install with no modifications. |
| Comment by Fenhl (Max Dominik Weber) [ 25/Oct/17 ] |
|
Same here. This appears to be fixed in 17w43a. |
| Comment by ziggurism [ 25/Oct/17 ] |
|
I'm not seeing this behavior in 17W43A, the new snapshot which updated to LWJGL 3. May be fixed? |
| Comment by Timothy Miller [ 15/Jun/17 ] |
|
TL;DR: Fixing stuck-on Command might also "fix" stuck-on right-click, which a lot of people rely upon heavily. Best not to create that much havoc over something fixed by remembering to tap Command an extra time. Long version: I would like to give a warning to those who are asking too vehemently for this bug to be fixed. This bug is annoying. No question there. But fixing it may have undesirable consequences for many. For me, this meta key problem never became a huge nuisance until Command was chosen as the meta key for saving hotbars in creative mode. Every time I would switch from/to Minecraft, pressing a number key would wreck one of my saved toolbars. I had suggested using Option instead, but Mojang's choice of using C and X was all-around a much better solution. Now, the only times this is a problem is in chat and when I press Q, making throwing items vs. stacks inconsistent. And it's dealt with by trying to remember to just tap Command an extra time when returning to Minecraft. This bug is caused by a bug in some library that Minecraft uses to process key input. I've written my own Java code to test this, and I find that if you Command-Tab away, the command key down event is delivered, but there's no key up even. Then when you command-tab back, the key up for Command event is delivered. For some reason that key up event is lost by this library, and I suspect it has something to do with a change of focus happening at the same time. I've spoken directly to Dinnerbone about this on IRC, and if I recall correctly, he said something about not having access to the source code to this library. So they'd have to rewrite it from scratch to fix the problem. But let's say they fixed this problem. In fact, there are other keys that also get stuck on when there's a chance in focus. An important one is right-click. You can intentionally get right-click stuck on by holding it down and then pressing F11. People rely on this for things like AFK fishing farms and AFK sand sweepers for removing the water from around ocean monuments. If Mojang were to go through the effort to fix this bug, then there's a distinct possibility that the F11/right-click trick would get "fixed" as well. A lot of people (including possibly some devs at Mojang) are somewhat antagonistic to AFK fishing, because they consider it overpowered. I'm sure there's an app you can install that will spoof keys to applications of your choice, but do you really want to go to that trouble? Now, I personally would be happy to volunteer to rewrite this module from scratch. All I need to know is the API, and I could probably write a drop-in replacement. It depends on how much platform-specific issues I'd have to deal with, which could balloon the development time. I would release it under an MIT or Apache license or whatever people want. One of the problems here is that Mojang seems to have some massive fear of accepting code from outsiders, even bug fixes and from people begging them to take the code with no strings attached. I really don't understand what makes them tick. |
| Comment by Lennard Berger [ 05/Jun/17 ] |
|
Giving a little more input: This must be related to LWJGL. It happened to me that there would be text in the chat box (when I switch tab out & in) which has been previously in memory (by another program) in an unused chunk of the memory (apparently the software did not dereference the string properly). Good news is: By using the command slash (one or multiple times) the bug usually disappears after a short amount of time. |
| Comment by John [ 15/May/17 ] |
|
Ah yes. The narrator turning itself on whenever I want to tab back into the game. |
| Comment by Nathan Wolf [ 15/May/17 ] |
|
Fun new 1.12 side-feature: there must be some kind of key combination for the narrator, because it's constantly turning on for me as a result of this bug. It really would be nice if this could get fixed. |
| Comment by Christoffer Larsson [ 14/May/17 ] |
|
Glad this was reopened. So annoying and makes the Minecraft chat almost unusable. |
| Comment by John [ 09/May/17 ] |
|
Whatever it is, it's extremely irritating. |
| Comment by jonathan2520 [ 14/Mar/17 ] |
|
LWJGL has been implicated before. I think there's a mention out somewhere else that LWJGL 3 would fix it. It certainly has nothing to do with the kernel. The kernels aren't even the same. What GNU/Linux and macOS share is a similar command line and POSIX-ish mid-level programming environment. Both higher and lower levels are fundamentally different. The relevant difference is in the UI APIs and how they're (ab)used by Minecraft and its libraries. |
| Comment by Donovan [ 14/Mar/17 ] |
|
Can confirm on `OS X 10.11.6 (15G1212)` MC 1.11.2 (Modded, Major Mods: MCForge, Optifine). Also is still reproducible after switching modifier keys, this can be accomplished by going to `System Preferences -> Keyboard -> Modifier Keys` and swapping the `Command Key` with another modifier key. ==EDIT== ==EDIT 2== |
| Comment by jonathan2520 [ 07/Mar/17 ] |
|
This is so much worse now that command+digit saves hotbars in 17w06a. It was reported separately as |
| Comment by S B [ 28/Feb/17 ] |
|
Confirmed in 1.11.2. |
| Comment by user-f2760 (Inactive) [ 05/Dec/16 ] |
|
theosib2 summary of this ticket:
|
| Comment by Timothy Miller [ 05/Dec/16 ] |
|
I can confirm this too, with the same setup as Simon Wermuth. Is this perhaps a macOS bug? |
| Comment by Simon Wermuth [ 21/Nov/16 ] |
|
Confirmed for macOS Sierra 10.12.1 |
| Comment by Oliver Brammer [ 07/Aug/16 ] |
|
Confirmed for Mac OS X El Capitan, running Java 1.8 with Minecraft 1.10.2 (vanilla, no mods). This has been an issue for far too long, and is incredibly frustrating. Whilst I've never personally encountered it on Linux, it was always a problem on OS X. I've also tried under macOS Sierra running Java 1.8, with the same result. |
| Comment by Jeffrey M James [ 10/Jun/16 ] |
|
Still exists in 1.10 |
| Comment by John [ 30/May/16 ] |
|
Still exists in 16w21b. |
| Comment by Nathan Wolf [ 08/Apr/16 ] |
|
It'd be nice to get some feedback either way. I don't see this behavior from other Java apps, so I can't imagine how low-level it could be. If Mojang uses Macs I am a little shocked this doesn't drive them crazy- I know I'd want to nail it down if it were me. So you could be right, that there's some reason it's very hard to fix, that would be both surprising and a little disappointing. Any possibility for a response from the team? The provided work-around really doesn't help anything, as you can see the numerous examples of how annoying this is. Yes it's "fixable" but not until after you're already frustrated about it. I'd love to say after years of dealing with it I've trained myself to mash command every time I alt-command back to MC, but apparently it's just not sticking in my brain. |
| Comment by ziggurism [ 08/Apr/16 ] |
|
I don't know if it's useful to speculate on the bugtracker like this, but it's my impression that low-level stuff like modifier keybinding is handled not by minecraft, but by something lower in the stack. Like when we had a bug to improve Chinese keyboard input methods in Minecraft chat ( |
| Comment by jonthesquirrel [ 08/Apr/16 ] |
|
Something to note is that when the command key is stuck, not only does backspace clear entire words, but "a" selects-all, "v" pastes, and "x" cuts whatever is selected. (until pressing the command key a few times) |
| Comment by Zedadias Wick [ 08/Apr/16 ] |
|
Agreed. It's infuriating having to retype messages all day, especially commands when working with command blocks. It's not listed, so confirming this still exists in 1.9 and 1.9.2. |
| Comment by Andrew Gordon [ 08/Apr/16 ] |
|
Can we PLEASE get an update on this? This bug has existed for a very long time and it's incredibly frustrating. It has resulted in hours of retyping messages. I agree that if any Mojang devs attempted to use the Mac version of this game (and used Command Tab app switching) they would fix this bug immediately. Can we please get some attention to this! |
| Comment by [Mod] Ezekiel (ezfe) [ 10/Nov/15 ] |
|
Just so people know, if this is occurring for you, press the command key a few times and it'll fix temporarily. It's super annoying for me too. |
| Comment by Nathan Wolf [ 09/Nov/15 ] |
|
Just checking in to say that this bug makes me scream at my computer at least once or twice a day. I'm guessing the Mac client is not exactly super high-priority now, if it ever was. I think if any one of the Mojang devs tries to use the game on Mac for just one day, this bug would get fixed. It's truly infuriating for anyone doing MC dev of any kind, since that routinely requires alt-tabbing away, and then back to type a command. 99% of the time you end up having to re-type the whole command, after realizing you just spewed some gibberish into chat. It's maddening! |
| Comment by jonthesquirrel [ 14/Oct/15 ] |
|
This happens to me too when switching desktops to my minecraft window in fullscreen, the command key gets stuck until I tap it inside minecraft. (Mac OS X 10.10, Java 8), still an issue in 15w41b. |
| Comment by John [ 29/Sep/15 ] |
|
1.8.8 presents this issue as well. When I type the "a" key, it highlights my sentence, and any further key stroke causes the sentence to be deleted. This also happens when I try to drop items using "Q". Instead of dropping one item, the whole stack is dropped. |
| Comment by Federico Isacchi [ 12/Sep/15 ] |
|
I encounter often this bug. It's very annoying. @Christopher: |
| Comment by Adriaan Renting [ 23/May/15 ] |
|
This just happened to me on Minecraft 1.8.5 It does seem to be related to Command-Tab and/or switching between Minecraft and other applications. |
| Comment by Christopher OBrien [ 16/Feb/15 ] |
|
Easier reproducer on OSX: Command-Tab to switch to a different window. When you switch back to the Minecraft window any keystrokes behave as if the Command key were still depressed (thus V behaves like Command-V, backspace like Command-backspace, etc). Workaround on OSX: If you tap Command once or twice the problem corrects and keystrokes behave normally. Perhaps check for the state of modifiers when the Minecraft window regains focus? Normally I'd be happy to submit a patch but... |
| Comment by HennoeR [ 22/Oct/14 ] |
|
for me this also seems to appear if the cmd key gets stuck and I try to write the letter V the content of the clipboard gets copied into the text box |
| Comment by qmagnet [ 20/Aug/14 ] |
|
I cannot reproduce with Windows. Please update title to clarify this for others testing. |
| Comment by [Mod] CubeTheThird [ 20/Aug/14 ] |
|
I am able to reproduce this with Ubuntu. Others have confirmed it previously with OSX. |
| Comment by qmagnet [ 20/Aug/14 ] |
|
This is reproducible as a bug? Is this not a hardware related issue with the keyboard itself? I cannot replicate this. |
| Comment by qmagnet [ 19/Aug/14 ] |
|
Cannot reproduce this issue in 14w34b |
| Comment by Galaxy_2Alex [ 21/Jan/14 ] |
|
Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by [Mod] CubeTheThird [ 11/Dec/13 ] |
|
I can confirm, following Tavis' steps. That being said, I'm not sure this could be fixed, as the game would have to be constantly checking if the shift and ctrl keys have been released. |
| Comment by CosmicVoyager [ 18/Nov/13 ] |
|
Pressing backspace deletes an entire word of text instead of just one letter. I noticed that if I press the command key it switches to deleting one letter. The is a major constant annoyance. Minecraft 1.7.2 |
| Comment by Nathanael Green [ 19/Sep/13 ] |
|
I have this issue on Mac OSX, with both 1.6 and the new snapshots. |
| Comment by fullname1 [ 23/Jul/13 ] |
|
So.... is there a solution for this or not.... |
| Comment by Anon Ymus [ 15/Jul/13 ] |
|
Reopened. |
| Comment by Tavis [ 04/Jul/13 ] |
|
This is not a duplicate of
For completeness, I am using Ubuntu. |
| Comment by Tails [ 11/Apr/13 ] |
| Comment by Tails [ 28/Mar/13 ] |
|
Ctrl+backspace deletes whole words, maybe caused by |
| Comment by Tails [ 05/Feb/13 ] |
|
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Zack Hixon [ 22/Nov/12 ] |
|
@Xavier Brown Thanks, please do. |
| Comment by FireHunterX [ 21/Nov/12 ] |
|
I can confirm this. It also sometimes does this with Signs and Book and Quills. |