b854932e02
- Update to tigervnc 1.4.1 on xorg-server 1.16.1. OBS-URL: https://build.opensuse.org/request/show/280582 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=46
25 lines
743 B
Diff
25 lines
743 B
Diff
Author: Michal Srb <msrb@suse.com>
|
|
Subject: Do not send ascii control characters for CTRL+[A-Z] combinations.
|
|
Patch-Mainline: To be upstreamed
|
|
References: bnc#864666
|
|
|
|
Index: vncviewer/Viewport.cxx
|
|
===================================================================
|
|
--- vncviewer/Viewport.cxx.orig
|
|
+++ vncviewer/Viewport.cxx
|
|
@@ -1044,7 +1044,13 @@ rdr::U32 Viewport::translateKeyEvent(voi
|
|
return NoSymbol;
|
|
}
|
|
|
|
- ucs = fl_utf8decode(keyText, NULL, NULL);
|
|
+ if (keyCode >= 'a' && keyCode <= 'z' && keyText[0] < 0x20) {
|
|
+ // Do not send ascii control characters - send the original key combination that caused them.
|
|
+ ucs = keyCode;
|
|
+ } else {
|
|
+ ucs = fl_utf8decode(keyText, NULL, NULL);
|
|
+ }
|
|
+
|
|
return ucs2keysym(ucs);
|
|
}
|
|
|