mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
keytests: Handle function-keys for xvkbd too
Function keys are sent to xvkbd as e.g. \[F15], so we should not split a sequence like "\C\[F15]" into two text pieces. (Do it like other keys not having a digit in their name (e.g. \[Return]) )
This commit is contained in:
parent
c643da99d7
commit
0abdc3dd59
@ -384,7 +384,7 @@ def sendKeystringLocal(keystr, LYX_PID):
|
||||
sys.stdout.flush()
|
||||
|
||||
Axreg = re.compile(r'^(.*)\\Ax([^\\]*)(.*)$')
|
||||
returnreg = re.compile(r'(\\\[[A-Z][a-z]+\])(.*)$')
|
||||
returnreg = re.compile(r'(\\\[[A-Z][a-z0-9]+\])(.*)$')
|
||||
|
||||
# recursive wrapper around sendKeystringLocal()
|
||||
# handling \Ax-entries
|
||||
@ -420,7 +420,7 @@ def sendKeystringAx(line, LYX_PID):
|
||||
if line != "":
|
||||
sendKeystringLocal(line, LYX_PID)
|
||||
|
||||
specialkeyreg = re.compile(r'(.+)(\\[AC]([a-zA-Z]|\\\[[A-Z][a-z]+\]).*)$')
|
||||
specialkeyreg = re.compile(r'(.+)(\\[AC]([a-zA-Z]|\\\[[A-Z][a-z0-9]+\]).*)$')
|
||||
# Split line at start of each meta or controll char
|
||||
|
||||
def sendKeystringAC(line, LYX_PID):
|
||||
@ -433,7 +433,7 @@ def sendKeystringAC(line, LYX_PID):
|
||||
else:
|
||||
sendKeystringAx(line, LYX_PID)
|
||||
|
||||
controlkeyreg = re.compile(r'^(.*\\\[[A-Z][a-z]+\])(.*\\\[[A-Z][a-z]+\])(.*)$')
|
||||
controlkeyreg = re.compile(r'^(.*\\\[[A-Z][a-z0-9]+\])(.*\\\[[A-Z][a-z0-9]+\])(.*)$')
|
||||
# Make sure, only one of \[Return], \[Tab], \[Down], \[Home] etc are in one sent line
|
||||
# e.g. split the input line on each keysym
|
||||
def sendKeystringRT(line, LYX_PID):
|
||||
|
Loading…
Reference in New Issue
Block a user