Commit 46548be2 authored by Skye Yu's avatar Skye Yu

fix: send Zoom schedule info data

parent 39e591fe
......@@ -898,7 +898,7 @@ Jensen.prototype.sendScheduleInfo = function (info) {
endDate = this.to_bcd(getTimeStr(info.endDate));
}
const reserved = 0x00; // 预留
const body = [...startDate, ...endDate, 0x00, ...codes];
const body = [...startDate, ...endDate, reserved, ...codes];
console.log('send schedule info', info, body);
return this.send(new Command(SCHEDULE_INFO).body(body));
};
......
......@@ -152,8 +152,8 @@ const HotKeyBuilder = {
__mapping: (key: string) => {
return keyMap[key];
},
build: (REG_8: number = 0x03) => {
let key1 = 0;
build: (REG_8: number = 0x03, REG_9: number = 0x00) => {
let key1 = REG_9;
if (HotKeyBuilder.control) key1 |= 0x01 << 0;
if (HotKeyBuilder.shift) key1 |= 0x01 << 1;
if (HotKeyBuilder.alt) key1 |= 0x01 << 2;
......@@ -192,16 +192,16 @@ export const shortcutKeys = {
Zoom: {
Windows: [
enterKeyCode(0, 1),
...HotKeyBuilder.withKey('CUSTOM_1').build(0x04),
...HotKeyBuilder.build(0x04, 0x01),
...HotKeyBuilder.withAlt().withKey('Q').build(),
...HotKeyBuilder.withKey('M').build(0x04),
...HotKeyBuilder.build(0x04, 0x10),
...HotKeyBuilder.withAlt().withKey('A').build()
],
Mac: [
enterKeyCode(0, 1),
...HotKeyBuilder.withKey('CUSTOM_1').build(0x04),
...HotKeyBuilder.build(0x04, 0x01),
...HotKeyBuilder.withGuiKey().withKey('W').build(),
...HotKeyBuilder.withKey('M').build(0x04),
...HotKeyBuilder.build(0x04, 0x10),
...HotKeyBuilder.withGuiKey().withShift().withKey('A').build()
],
Linux: [enterKeyCode(), ...emptyCodes, ...emptyCodes, ...emptyCodes, ...emptyCodes]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment