Skip to content

Commit

Permalink
Always rebroadcast keyboard evnets even on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Oct 5, 2021
1 parent effdb8d commit 1ba8bac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/viewer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as vscode from 'vscode'
import * as fs from 'fs'
import * as os from 'os'
import type ws from 'ws'
import * as path from 'path'
import * as cs from 'cross-spawn'
Expand Down Expand Up @@ -266,7 +265,7 @@ export class Viewer {
const configuration = vscode.workspace.getConfiguration('latex-workshop')
const setting: 'auto' | 'force' | 'never' = configuration.get('viewer.pdf.internal.keyboardEvent', 'auto')
if (setting === 'auto') {
return os.platform() !== 'linux' || !!vscode.env.remoteName?.match(/^(dev-container|attached-container|wsl|ssh-remote)$/)
return true
} else if (setting === 'force') {
return true
} else {
Expand Down

0 comments on commit 1ba8bac

Please sign in to comment.