Added TERMKEY_FORMAT_LOWERSPACE for strpkey() also

This commit is contained in:
Paul LeoNerd Evans
2013-08-26 02:23:19 +01:00
parent 3b2d8eb813
commit 8e503baed8
4 changed files with 86 additions and 29 deletions

View File

@@ -34,7 +34,7 @@ Use spaces instead of hyphens to separate the modifier name(s) from the base key
Use lowercase for the modifier name.
.TP
.B TERMKEY_FORMAT_LOWERSPACE
Use lowercase for the key name instead of camelCase (for example "\f(CWpage down\fP" instead of "\f(CWPageDown\fP").
Use lowercase with spaces in for the key name instead of camelCase (for example "\f(CWpage down\fP" instead of "\f(CWPageDown\fP").
.TP
.B TERMKEY_FORMAT_MOUSE_POS
If the event is a mouse event, include the position rendered as "\f(CW@ (col,line)\fP".

View File

@@ -29,6 +29,9 @@ Expect spaces instead of hyphens to separate the modifer name(s) from the base k
.TP
.B TERMKEY_FORMAT_LOWERMOD
Expect lowercase for the modifier name
.TP
.B TERMKEY_FORMAT_LOWERSPACE
Expect lowercase with spaces in for the key name instead of camelCase (for example "\f(CWpage down\fP" instead of "\f(CWPageDown\fP").
.PP
Before returning, this function canonicalises the \fIkey\fP structure according to the rules given for \fBtermkey_canonicalise\fP(3).
.PP