3d739c3bfc
Omarchy's Super+C sends Ctrl+C by setting the modifier state with no Ctrl key event while Super is held. Flutter's web engine only presses a modifier on its own key event, so the app saw a plain "c": the chat selection was not copied and the terminal typed the letter. A key modifier sync in front of the framework's key handler now presses the modifiers the browser event's flags hold (and outside Apple platforms lets go of a held Meta for Ctrl+C/V/X/A/ Insert), installed by the app's binding. The terminal copies a selection on Ctrl+C without sending ^C, treats the injected copy key as copy only, and pastes on Shift+Insert. A refused clipboard write or read now shows a message instead of failing silently. Server: before the login completes, Ctrl+C and Ctrl+\ erase the typed password (Ctrl+U) and Ctrl+Z is dropped, so su is not killed and the terminal no longer ends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
224 lines
3.9 KiB
JSON
224 lines
3.9 KiB
JSON
{
|
|
"params": "chats=2",
|
|
"steps": [
|
|
{
|
|
"open": "/chat/perf-chat-0@1000x800"
|
|
},
|
|
{
|
|
"wait": 1500
|
|
},
|
|
{
|
|
"grant": "clipboard"
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.writeText('SENTINEL').then(()=>'reset')"
|
|
},
|
|
{
|
|
"drag": "484,267",
|
|
"dx": 110,
|
|
"dy": 0
|
|
},
|
|
{
|
|
"shot": "physical-ctrl-c-selected"
|
|
},
|
|
{
|
|
"keys": [
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 17
|
|
},
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 67
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 67
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"modifiers": 0,
|
|
"windowsVirtualKeyCode": 17
|
|
}
|
|
],
|
|
"wait": 600
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.readText().then(t=>'physical-ctrl-c: '+JSON.stringify(t))",
|
|
"name": "physical-ctrl-c"
|
|
},
|
|
{
|
|
"click": "700,200"
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.writeText('SENTINEL').then(()=>'reset')"
|
|
},
|
|
{
|
|
"drag": "484,267",
|
|
"dx": 110,
|
|
"dy": 0
|
|
},
|
|
{
|
|
"shot": "omarchy-super-c-ctrl-only-selected"
|
|
},
|
|
{
|
|
"keys": [
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "Meta",
|
|
"code": "MetaLeft",
|
|
"modifiers": 4,
|
|
"windowsVirtualKeyCode": 91
|
|
},
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 67,
|
|
"after": 30
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 67,
|
|
"after": 50
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "Meta",
|
|
"code": "MetaLeft",
|
|
"modifiers": 0,
|
|
"windowsVirtualKeyCode": 91,
|
|
"after": 100
|
|
}
|
|
],
|
|
"wait": 600
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.readText().then(t=>'omarchy-super-c-ctrl-only: '+JSON.stringify(t))",
|
|
"name": "omarchy-super-c-ctrl-only"
|
|
},
|
|
{
|
|
"click": "700,200"
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.writeText('SENTINEL').then(()=>'reset')"
|
|
},
|
|
{
|
|
"drag": "484,267",
|
|
"dx": 110,
|
|
"dy": 0
|
|
},
|
|
{
|
|
"shot": "omarchy-super-c-ctrl-meta-selected"
|
|
},
|
|
{
|
|
"keys": [
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "Meta",
|
|
"code": "MetaLeft",
|
|
"modifiers": 4,
|
|
"windowsVirtualKeyCode": 91
|
|
},
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 6,
|
|
"windowsVirtualKeyCode": 67,
|
|
"after": 30
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "c",
|
|
"code": "KeyC",
|
|
"modifiers": 6,
|
|
"windowsVirtualKeyCode": 67,
|
|
"after": 50
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "Meta",
|
|
"code": "MetaLeft",
|
|
"modifiers": 0,
|
|
"windowsVirtualKeyCode": 91,
|
|
"after": 100
|
|
}
|
|
],
|
|
"wait": 600
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.readText().then(t=>'omarchy-super-c-ctrl-meta: '+JSON.stringify(t))",
|
|
"name": "omarchy-super-c-ctrl-meta"
|
|
},
|
|
{
|
|
"click": "700,200"
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.writeText('SENTINEL').then(()=>'reset')"
|
|
},
|
|
{
|
|
"drag": "484,267",
|
|
"dx": 110,
|
|
"dy": 0
|
|
},
|
|
{
|
|
"shot": "ctrl-insert-selected"
|
|
},
|
|
{
|
|
"keys": [
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 17
|
|
},
|
|
{
|
|
"type": "rawKeyDown",
|
|
"key": "Insert",
|
|
"code": "Insert",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 45
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "Insert",
|
|
"code": "Insert",
|
|
"modifiers": 2,
|
|
"windowsVirtualKeyCode": 45
|
|
},
|
|
{
|
|
"type": "keyUp",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"modifiers": 0,
|
|
"windowsVirtualKeyCode": 17
|
|
}
|
|
],
|
|
"wait": 600
|
|
},
|
|
{
|
|
"eval": "navigator.clipboard.readText().then(t=>'ctrl-insert: '+JSON.stringify(t))",
|
|
"name": "ctrl-insert"
|
|
},
|
|
{
|
|
"click": "700,200"
|
|
}
|
|
]
|
|
} |