Enable shortcut(Alt + Tab) on matchbox(window mana


以前在 MID 上用的系统,直接porting 到 Netbook 上之后。由于操作习惯不同(MID 是用finger,而Netbook是用键盘鼠标的),所以在Netbook上操作起来很不方便,特别是没有 快捷键(shortcut)。

开始的时候,觉得可能是 Key Map 出了问题。经过调查 loadkeys xmodmap xev 等,发现 Alt 和Tab 键对应的 keycode 没有问题。

Read
http://en.wikipedia.org/wiki/Alt-Tab

发现 在窗口这个层面上,控制它的快捷键的应该是 window manager. 而目前这个系统的 window manager : matchbox

接下来,事情就有头绪了.

http://matchbox-project.org/docs.html (Matchbox Client communication specifics.)
-> http://matchbox-project.org/documentation/developers/matchbox-key.txt

得知 , 定义快捷键的位置在

$prefix/share/matchbox/kdbconfig or ~/.matchbox/kbdconfig if it exists.

search <matchbox kbdconfig alt tab> on google.

a sample kbdconfig file has been found.
  http://www.filewatcher.com/p/matchbox-window-manager_0.9.3-1_i386.deb.141524/etc/matchbox/kbdconfig.html

-------------------------------------------------------------
#
# This is an example keyboard config file for matchbox
#
# You can edit this file or change per user by copying to
#  ~/.matchbox/kbdconfig
#
# Se the matchbox manual for more info ( http://projects.o-hand.com/matchbox )

### Window operation short cuts

<Alt>n=next
<Alt>p=prev
<Alt>c=close
<Alt>d=desktop
<Alt>m=!matchbox-remote -mbmenu

### App launching.

<ctrl><alt>x=!xterm
<ctrl><alt>r=!rxvt

### App launching with startup notify

<ctrl><alt>e=!!gpe-calender

### windows style key shortcuts

<alt>Tab=next
<alt><shift>Tab=prev

<alt>space=taskmenu
<alt>escape=!matchbox-remote -mbmenu
<alt>f4=close

f11=fullscreen

### super should be a 'window' key, uncomment '#' if you have one.

#<super>d=desktop
#<super>r=!xterm
#<super>e=!!nautilus

### Special keys, likely probably only available on extended keyboards.

#App=!matchbox-remote -mbmenu
#Menu=!matchbox-remote -mbmenu



你可能感兴趣的:(html,C++,c,windows,Google)