Skip to main content

Remote Control Mode

Remote Control Mode is a convenient way to send remote control commands to a Roku entirely from your keyboard in vscode without needing to pick up a physical Roku remote.

Turning it on and off​

From the status bar​

Click the remote icon in the status bar to toggle remote mode on or off.

remote-mode

From the command palette​

From the keyboard​

Press ctrl+k on Windows or cmd+k on Mac.

How it works​

When Remote Control Mode is activated, we enable about 100 key bindings that capture most of the standard US keyboard keys. At this point, you may use your keyboard to send text input, use the arrow keys to send left/right/up/down button presses, etc. Most keyboard strokes will be sent to the Roku device as input rather than to your editor. Some notable exceptions include when: the command palette is open, an input box is open, or you are focused on other input areas like a search box. Once you're finished, simply disable remote control mode.

Remote Control Mode has support for full text input from the keyboard. For example, if you pressed shift+b while Remote Control Mode is active we will send B to the device. We support all the single press and shift press ascii characters on the keyboard (excluding the num pad). For example: a-z, A-Z, 0-9, and all the primary symbols such as !, @, #, ', ", etc...

Here are many of the registered key bindings. You can see the full list in the package.json under keybindings.

Note: We do not support sending alt characters directly from the keyboard. This can be done via the extension.brightscript.sendRemoteText command.

Keybinding (Windows)Keybinding (Mac)Roku ButtonDescription
UpUpUp
DownDownDown
LeftLeftLeft
RightRightRight
EnterEnterOK
EscapeEscapeBack
DeleteDeleteBack
HomeHomeHome
Shift+EscapeShift+EscapeHome
Ctrl+EscapeCmd+EscapeHome
BackspaceBackspaceInstant ReplayCan also be used to delete the character to the left of the cursor in an input box
Ctrl+BackspaceCmd+BackspaceBackspaceDelete the character to the left of the cursor in an input box
Ctrl+EnterCmd+EnterPlay/Pause
EndEndPlay/Pause
MediaPlayPauseMediaPlayPausePlay/PauseVSCode does not block this button's system action, so only use this if you're not playing audio
Ctrl+LeftCmd+LeftRewind
PageUpPageUpRewind
MediaTrackPreviousMediaTrackPreviousRewindVSCode does not block this button's system action, so only use this if you're not playing audio
Ctrl+RightCmd+RightFast Forward
PageDownPageDownFast Forward
MediaTrackNextMediaTrackNextFast ForwardVSCode does not block this button's system action, so only use this if you're not playing audio
Ctrl+8Cmd+8Star
Ctrl+Shift+8Cmd+Shift+8Star
InsertInsertStar
AudioVolumeMuteAudioVolumeMuteVolume MuteVSCode does not block this button's system action, so only use this if you're not playing audio

Customizing Keybindings​

You can create your own keybindings by modifying the keybindings.json file in vscode. Here's an example entry. Make sure to use the when clause from the following example if you want your keyboard shortcuts to be restricted to Remote Control Mode.

{
    "key": "Delete",
    "command": "extension.brightscript.pressBackButton",
    "when": "!searchInputBoxFocus && !findInputFocussed && !inCommandsPicker && !inQuickOpen && brightscript.isRemoteControlMode"
}