相关疑难解决方法(0)

无法设置抓取截图区域的快捷方式

我目前有 Ubuntu 13.10。在某些时候,默认快捷方式Shift+PrnCtrl+ Shift+Prn停止工作。

只需按Prn(捕获整个屏幕)即可,按Alt+ 也Prn可仅捕获活动窗口,只有区域剪切的快捷方式由于某种原因不起作用。

还有一些事实:

  • 手动运行gnome-screenshot -a按预期工作!
  • 将操作更改为另一个组合键无济于事
  • 禁用该操作并使用此处gnome-screenshot -a回答的命令添加自定义快捷方式也无济于事

这是我的键盘设置的屏幕截图:

键盘设置

有任何想法吗?

PS 在 CompizConfig 设置管理器中,Commands插件被关闭


更新@falconer 的回答有助于定位问题,这是模拟按键和转储拦截它们的程序的脚本的输出:

$ xdotool keydown "shift+Print"; xdotool key "XF86LogGrabInfo"; xdotool keyup "Print"; sleep 1; xdotool keyup "shift"; tail /var/log/Xorg.0.log
[ 25474.641] (II) Printing all currently active device grabs:
[ 25474.641] Active grab 0x4220d336 (core) on device 'Virtual core …
Run Code Online (Sandbox Code Playgroud)

gnome keyboard shortcut-keys screenshot

6
推荐指数
1
解决办法
2331
查看次数

键盘快捷键间歇性地停止工作

编辑:从答案中可以看出,这实际上与待机或休眠无关,而是与我在大部分时间进入待机状态之前经常关闭应用程序窗口(触发错误)有关。

我在网上的各个地方看到很多人报告这个,没有任何解决方案,但我想无论如何我都会添加我的:

很多时候,在一段时间后(进入待机状态时)返回计算机后,我注意到某些快捷方式已停止工作。这不仅发生在终端中,而且发生在 Chrome 中(Ctrl-L、Ctrl-R、F5 都停止工作)。它也不会影响所有 ctrl-shortcuts:例如,Ctrl-C 仍然有效(感谢上帝!)。

有没有办法调试这个?xev早点尝试并没有让我到任何地方,但也许有某种方法可以找出阻止我的按键到达程序的原因?

编辑:我可以看到 Ctrl-R 发生了一些奇怪的事情

有东西抢了键盘快捷键!

捕获的输出 xev

KeyPress event, serial 37, synthetic NO, window 0x5200001,
    root 0xee, subw 0x0, time 24547557, (-130,529), root:(0,633),
    state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5200001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5200001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify …
Run Code Online (Sandbox Code Playgroud)

xorg keyboard shortcut-keys xev electron

3
推荐指数
1
解决办法
1408
查看次数

标签 统计

keyboard ×2

shortcut-keys ×2

electron ×1

gnome ×1

screenshot ×1

xev ×1

xorg ×1