ubuntu中禁止使用鼠标拖动来移动文件

windows和ubuntu中都可以拖动文件到其他路径,然后达到移动文件的目的。

这种方式有好处也有坏处,好处是移动文件方便了,坏处是误操作后会造成故障,尤其是ubuntu中,本身鼠标就特别灵敏并且操作不便,拖动一个文件后,整个环境都会发生变化,很有可能编译失败,然后各种找问题。而且linux环境正经人谁使用拖动来移动文件的。索性直接禁止。

按照如下操作进行就可以禁止tap-and-drag功能(貌似只是禁止了触摸板touch-pad的拖动功能,外接鼠标还可以拖动):

GNOME has a setting for this, it is just not accessible in GNOME Control Center.

You can either use terminal or dconf-editor to access this setting.

Terminal:

  1. Turn off tap-and-drag.

    gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag false
    
  2. Check if it was successful.

    gsettings get org.gnome.desktop.peripherals.touchpad tap-and-drag
    

dconf-editor:

  1. Install dconf-editor
  2. Inside dconf-editor navigate to org/gnome/desktop/peripherals/touchpad
  3. Find tap-and-drag and turn off the setting

外接鼠标貌似禁止不了拖动功能,不过有个拖动距离判断,达到这个距离才判断为拖动,也可以吧。

dconf-editor:

org - gnome - desktop - peripherals - mouse - custom value

把这个值弄大点,就可以使鼠标拖动需要很长距离才能启动判断,可以防止误操作吧 

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值