本文主要是介绍ubuntu的按键s和按键d无法正常使用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天使用vagrant+ubuntu搭建了一个环境,由于测试要使用qemu模块,必须在图形界面下调试,所以ubuntu装了vnc4server和gnome,外部vnc client连接之后,界面正常显示,但还没敲几句代码,就发现按键s和按键d出问题了,按下按键s会直接跳到菜单栏applications上去,按下按键d的效果是所以窗口最小化和恢复,瞬间崩溃了,查了很多资料终于发现问题出在早期的ubuntu版本按键关联异常,可以使用如下语句解决。楼主通过把[]中的关联全部去掉来解决,即改为['']。
gsettings set org.gnome.desktop.wm.keybindings cycle-windows-backward "['<Shift><Alt>Escape']"
gsettings set org.gnome.desktop.wm.keybindings minimize "['<Super>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['<Super><Shift>7']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['<Super><Shift>8']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "['<Super><Shift>9']"
gsettings set org.gnome.desktop.wm.keybindings move-to-monitor-left "['']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Super><Shift>5']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['<Super><Shift>6']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-10 "['']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-11 "['']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-12 "['']"
gsettings set org.gnome.desktop.wm.keybindings move-to-center "['<Super>h']"
gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Super>Down', '<Alt>F5']"
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "['<Alt>F1']"
gsettings set org.gnome.desktop.wm.keybindings cycle-wind
这篇关于ubuntu的按键s和按键d无法正常使用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!