UserGuide: Add some notes about keysym syntax

Fixes: #10745
This commit is contained in:
Juergen Spitzmueller 2017-08-26 13:23:31 +02:00
parent 50ef5a17e4
commit 7fc8bfc30d
2 changed files with 111 additions and 6 deletions

View File

@ -140,11 +140,12 @@ enumitem
\papercolumns 1 \papercolumns 1
\papersides 2 \papersides 2
\paperpagestyle default \paperpagestyle default
\tracking_changes false \tracking_changes true
\output_changes false \output_changes false
\html_math_output 0 \html_math_output 0
\html_css_as_file 0 \html_css_as_file 0
\html_be_strict true \html_be_strict true
\author -712698321 "Jürgen Spitzmüller"
\end_header \end_header
\begin_body \begin_body
@ -8336,14 +8337,12 @@ Verbatim
\end_layout \end_layout
\begin_layout Verbatim \begin_layout Verbatim
This is Verbatim. This is Verbatim.
\end_layout \end_layout
\begin_layout Verbatim \begin_layout Verbatim
\noindent \noindent
\align block \align block
The following 2 lines are empty: The following 2 lines are empty:
\end_layout \end_layout
@ -8356,7 +8355,6 @@ The following 2 lines are empty:
\end_layout \end_layout
\begin_layout Verbatim \begin_layout Verbatim
Almost everything is allowed in Verbatim:"%&$§#~'` Almost everything is allowed in Verbatim:"%&$§#~'`
\backslash \backslash
}][{| }][{|
@ -8380,7 +8378,6 @@ Verbatim
\end_layout \end_layout
\begin_layout Verbatim* \begin_layout Verbatim*
This is Verbatim*. This is Verbatim*.
\end_layout \end_layout
@ -46102,6 +46099,62 @@ key combination
\end_inset \end_inset
\change_inserted -712698321 1503738349
\end_layout
\begin_layout Standard
\change_inserted -712698321 1503740883
Note, though, that the key combination definition uses a specific syntax.
This applies to the designators of specific modifier keys (e.
\begin_inset space \thinspace{}
\end_inset
g.,
\family typewriter
M
\family default
,
\family typewriter
S
\family default
,
\family typewriter
C
\family default
for
\family sans
Meta/Alt
\family default
,
\family sans
Shift
\family default
,
\family sans
Ctrl
\family default
, respectively) as well as to the other keys.
Note particularly that you cannot use non-alphanumeric characters directly
in the definition of the key combination, but must use commands following
the Xlib standard instead (please refer to the existing bind files for
a model).
So if you wanted to bind a command to the key combination
\family sans
Alt+Shift+:
\family default
, you needed to specify it as
\family typewriter
M-S-colon
\family default
.
If you use the dialog to edit key bindings, you don't have to care for
these specifics.
\SpecialChar LyX
transforms your input to the correct syntax.
\change_unchanged
\end_layout \end_layout
\begin_layout Subsection \begin_layout Subsection

View File

@ -44807,6 +44807,58 @@ bind „Tastaturkürzel“ „\SpecialChar LyX
-Funktion“ -Funktion“
\end_layout \end_layout
\begin_layout Standard
Beachten Sie hierbei aber, dass die Definition der Tastenkürzel eine spezielle
Syntax verlangt.
Das betrifft die Symbole für Modifizierungstasten (bspw.
\family typewriter
M
\family default
,
\family typewriter
S
\family default
,
\family typewriter
C
\family default
für
\family sans
Meta/Alt
\family default
,
\family sans
Umschalt
\family default
,
\family sans
Strg
\family default
) genauso wie die für andere Tasten.
Beachten Sie insbesondere, dass Sie keine nicht-alphanumerischen Zeichen
in den Definitionen verwenden können.
Statt dessen müssen Sie Befehle verwenden, die dem Xlib-Standard folgen
(bitte sehen Sie sich die vorhandenen
\family typewriter
*.bind
\family default
-Dateien für Beispiele an).
Wenn Sie also etwa einen Befehl an die Tastenkombinationen
\family sans
Alt+Umschalt+:
\family default
binden wollten, müssten Sie diese so definieren:
\family typewriter
M-S-colon
\family default
.
Wenn Sie die Tastenkombinationen im Einstellungs-Dialog bearbeiten, müssen
Sie sich um diese Spezifika nicht kümmern.
\SpecialChar LyX
übersetzt Ihre Tasteneingaben in die korrekte Syntax.
\end_layout
\begin_layout Subsection \begin_layout Subsection
Tastatur / Maus Tastatur / Maus
\begin_inset CommandInset label \begin_inset CommandInset label