fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.33k stars 114 forks source link

Disconnected on save #323

Closed Paklenizmaj closed 3 months ago

Paklenizmaj commented 3 months ago

Description and repro

When using GhostText on Chrome with VS Code, I experience a disconnection every time I press Ctrl+S. This is problematic because I habitually press Ctrl+S after making any change. Disconnecting on file save is not desirable and interrupts my workflow.

Steps to Reproduce:

Install GhostText on Chrome. Connect GhostText to VS Code. Make any change in the VS Code editor. Press Ctrl+S to save the file. Expected Behavior: GhostText should remain connected after saving the file with Ctrl+S.

Actual Behavior: GhostText disconnects every time Ctrl+S is pressed.

Environment:

Browser: Chrome Editor: VS Code GhostText Version: 24.7.6 Operating System: Windows 10

Browser(s) tried

Chrome

Editor(s) tried

VS Code

fregante commented 3 months ago

Duplicate of https://github.com/fregante/GhostText/issues/292

Paklenizmaj commented 3 months ago

My solution for this problem is a little ahk script, This script is active only if I use GhostText, so I do not need to change a any vscode or system settings.

#IfWinActive ahk_class Chrome_WidgetWin_1 ahk_exe Code.exe
^s::
return
#IfWinActive