You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 16.4 LTS下Android Studio 3.0添加Alt+鼠标左键快捷键问题求助

Fixing Alt + Left Mouse Button Shortcut Recognition in Android Studio 3.0 (Ubuntu 16.04 LTS)

Hey there, I’ve dealt with similar desktop shortcut conflicts on Ubuntu before, so let’s walk through the fixes for your issue where Android Studio won’t recognize the Alt + Left Mouse Button combination (even though it picks up each input separately):

1. Resolve Ubuntu System-Level Shortcut Conflicts

Ubuntu’s default window manager (Unity) uses Alt + Left Mouse Button to move windows by default—this is almost certainly the culprit. Here’s how to reconfigure it:

  • Open System Settings → Keyboard → Switch to the Shortcuts tab
  • Navigate to the Windows category
  • Find the Move window option (it’s bound to Alt + Left Mouse Button by default)
    • Either reassign it to a different combination (like Super/Windows + Left Mouse Button)
    • Or click the shortcut field and press Backspace to disable it entirely
  • Restart Android Studio after making this change, then try setting your shortcut again

2. Re-Add the Shortcut in Android Studio Properly

Sometimes the way you input the combination matters. Follow these steps carefully:

  • Open Android Studio, go to File → Settings → Keymap
  • Locate the action you want to bind to Alt + Left Mouse Button
  • Right-click the action and select Add Mouse Shortcut
  • In the pop-up dialog: hold down the Alt key first, then click the left mouse button—don’t click first or release Alt early
  • Click OK to save, then test the shortcut immediately

3. Clear Android Studio’s Cache

Corrupted cache files can cause weird input recognition issues. Let’s wipe them:

  • Close Android Studio completely
  • Open a terminal and run this command to delete the cache directory:
    rm -rf ~/.AndroidStudio3.0/system/caches
    
  • Launch Android Studio again and attempt to set the shortcut once more

4. Verify Your JDK Setup (Optional)

Incompatible JDK versions can sometimes interfere with input handling. Make sure you’re using Android Studio’s built-in JDK:

  • Go to File → Project Structure → SDK Location
  • Check the JDK location field—it should point to something like /opt/android-studio/jre
  • If it’s using a different JDK, switch to the built-in one and restart Android Studio

内容的提问来源于stack exchange,提问作者user9163511

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 06:52:13