我的删除键在 OS X 的 Eclipse 中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2539672/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
My delete key won't work in Eclipse in OS X
提问by Eric Wilson
My delete key isn't working in Eclipse in OS X. However, Shift-Delete deletes.
我的删除键在 OS X 中的 Eclipse 中不起作用。但是,Shift-Delete 会删除。
Delete works elsewhere, so a setting must have been unwittingly changed. Any idea what it is or how to fix it?
删除在其他地方有效,因此设置必须在不知不觉中被更改。知道它是什么或如何修复它吗?
Restarting Eclipse didn't help.
重新启动 Eclipse 没有帮助。
采纳答案by VonC
Check your key mapping for delete and cut commands:
检查删除和剪切命令的键映射:
Maybe the delete key has been re-affected.
也许删除键已经被重新影响了。
回答by Shanimal
I'm on a mac and this is a trip. None of the answers are working for me. I tried everything suggested here :(
我在 Mac 上,这是一次旅行。没有一个答案对我有用。我尝试了这里建议的所有内容:(
I was about to reinstall eclipse and decided to see if a restart would help. I logged off...
我正要重新安装 eclipse 并决定看看重新启动是否有帮助。我注销了...
? | Log out [user]
and then logged back on and I got control of my arrows and delete key again.
然后重新登录,我控制了我的箭头并再次删除键。
!!! UPDATE !!! If I close one program in the doc I get it all back.
!!!更新 !!!如果我关闭文档中的一个程序,我会全部恢复。
This generally happens to me when Firefox Crashes
当 Firefox 崩溃时,这通常发生在我身上
回答by nix
I have this problem with Helios too sometimes. It seems like it has to do with changing focus to another app and when i return, the arrow keys and delete don't work. If you also have problems with the arrow keys, the solution is to change the
我有时也遇到 Helios 的这个问题。这似乎与将焦点更改为另一个应用程序有关,当我返回时,箭头键和删除不起作用。如果箭头键也有问题,解决方法是更改
Preferences | General | Keys | Scheme
I just change it to something and change it back and it solves the issue.
我只是将其更改为某些内容并将其更改回来,它解决了问题。
回答by Shanimal
STRANGE SOLUTION WORKS! Recover by randomly closing one program in the Mac dock
奇怪的解决方案!通过随机关闭 Mac Dock 中的一个程序来恢复
Pick any program in the dock and close it. This usually happens to me when Firefox crashes, but it might work for you as well.
在 Dock 中选择任何程序并关闭它。当 Firefox 崩溃时,这通常会发生在我身上,但它也可能对你有用。
Added this as an alternative answer because it appears to be relevant —Shanimal
添加此作为替代答案,因为它似乎相关-Sanimal
回答by Bao Le
None of these answers help me. It works after following actions:
这些答案都没有帮助我。它在以下操作后起作用:
- Go to Preference > General > Keys > Delete
- Clear Binding text field
- Assign Tab to Binding text field, then click OK (it works as press tab to delete files)
- Go back Preference > General > Keys > Delete
- Clear Binding text field
- Assign "Delete" to Binding text field, then click OK
- 转到首选项 > 常规 > 键 > 删除
- 清除绑定文本字段
- 将 Tab 分配给绑定文本字段,然后单击确定(它的作用类似于按 Tab 删除文件)
- 返回首选项 > 常规 > 键 > 删除
- 清除绑定文本字段
- 将“删除”分配给绑定文本字段,然后单击“确定”
That's all.
就这样。
回答by Huuuze
This was a known bug in previous (non-Helios -- 3.6) versions of Eclipse. Apparently, the bug was addressed in Helios:
这是先前(非 Helios -- 3.6)版本的 Eclipse 中的一个已知错误。显然,该错误已在 Helios 中解决:
回答by Huuuze
Hi Fn key and delete works for me.
嗨 Fn 键和删除对我有用。
What I did I clear the binding and Apply Then I again set the binding and Apply. Then Restart the Eclipse.
我做了什么我清除了绑定和应用然后我再次设置了绑定和应用。然后重新启动Eclipse。
回答by Khon
I just had the same problem too. Got the delete key to work again by right clicking one of the tabs I had open in eclipse and clicking "Close All"
我也遇到了同样的问题。通过右键单击我在 Eclipse 中打开的选项卡之一并单击“全部关闭”,让删除键再次工作
Somehow that worked.
不知何故,这奏效了。
Someone mentioned it generally happens after firefox crashes, oddly enough that did happen after my firefox crashed.
有人提到它通常发生在 Firefox 崩溃之后,奇怪的是,它确实发生在我的 Firefox 崩溃之后。
Hope this helps someone.
希望这可以帮助某人。
回答by Christian Scholz
The same problem here using Mac OSX 10.7.5 and Eclipse 4.2.2 loosing DEL Key, Save Shortcut (and maybe others)
同样的问题在这里使用 Mac OSX 10.7.5 和 Eclipse 4.2.2 丢失 DEL 键,保存快捷方式(可能还有其他)
Solution for me is to click into another file-editor window and back into the one i was editing.
我的解决方案是单击进入另一个文件编辑器窗口并返回到我正在编辑的那个窗口。