video_ack_required

This commit is contained in:
rustdesk
2022-02-05 01:55:23 +08:00
Unverified
parent 9ff3bd74c9
commit b348b3fdc8
65 changed files with 1307 additions and 58 deletions

View File

@@ -45,12 +45,11 @@ export function translate(locale: string, text: string): string {
const zCode = "z".charCodeAt(0);
const aCode = "a".charCodeAt(0);
export function mapKey(name: string) {
export function mapKey(name: string, isDesktop: Boolean) {
const tmp = KEY_MAP[name];
if (!tmp) return undefined;
if (tmp.length == 1) {
const chr = tmp.charCodeAt(0);
if (chr > zCode || chr < aCode)
if (!isDesktop && (chr > zCode || chr < aCode))
return KeyEvent.fromPartial({ unicode: chr });
else return KeyEvent.fromPartial({ chr });
}