From 67fd58d6f01ad84387421e2fc861c28dcf5c4f3c Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 19 Dec 2010 12:12:20 +0200 Subject: input: support bindings with modifier keys for X input Add support for binding commands to modifier+key combinations like "Shift+Left" or "Ctrl+Alt+x", and support reading such combinations from the output window of X VOs. The recognized modifier names are Shift, Ctrl, Alt and Meta. Any combination of those and then a non-modifier key name, separated by '+', is accepted as a key name in input.conf. For non-special keys that produce characters shift is ignored as a modifier. For example "A" is handled as a key without modifiers even if you use shift to write the capital letter; 'a' vs 'A' already distinguishes the combinations with a normal keymap, and having separate 'a', 'Shift+A' and 'A' (written with caps lock for example) would bring more confusion than benefit. Currently reading the modifier+key combinations is only supported in the output window of those VOs that use x11_common.c event handling. It's not possible to input the key combinations in other VOs or in a terminal window. --- etc/input.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/input.conf b/etc/input.conf index 0bcfdec9f7..df7bcb60cd 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -10,6 +10,10 @@ ## If you wish to unbind a key, use key ignore. ## e.g. ENTER ignore ## +## You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with +## modifiers Shift, Ctrl, Alt and Meta, but note that currently reading +## key combinations is only supported through the video windows of X-based +## output drivers (not in output windows of other drivers or in a terminal). RIGHT seek +10 LEFT seek -10 -- cgit v1.2.3