Feature: Keyboard Shortcuts

Keyboard shortcuts are great for so many reasons. So, it’d be really helpful if toph had some keyboard shortcuts built in.

I’m already using an userscript to get some shortcuts for myself, but it’d be nicer and better if toph provided their own.

Here’s the script that I’m using: github.com/…/toph/keyboardShortcuts.js

tl;dr
I’m using:
ctrl+e → Toggle the Editor (IDE) [esc for closing too]
ctrl+enter → Test Run the code in Editor
ctrl+shift+enter → Submit the code in Editor
ctrl+l → Toggle the language selector dropdown

It’s not a priority feature request, but it’d be nice to have it sometime in future.

1 Like

@Nusab19 Thank you for the suggestion. This is now a thing in Toph. :slight_smile:

I have adopted the same shortcuts you have been using (except one). To open the language dropdown, you have to use (ctrl/meta+k m) (e.g. on Windows, you have to press ctrl+k and then m immediately after). This is the same default shortcut used for this purpose in some popular code editor applications.

1 Like

@hjr265 Just checked it out. Works fine.

Btw, could you ping me in dm? I accidentally clicked the cross button last week.

I should make the DM feature generally available already. I just need to add a feature that allows people to report abuse first without having to send an email to support.

Anyway… Pinged.

1 Like

@hjr265 ctrl+e opens the Editor, but doesn’t close when pressed again. To close, esc needs to be pressed.

Maybe this is the expected behavior. But is there a way to have the option to use ctrl+e to toggle the Editor?

That probably makes things a bit quicker.

I already have my userscript doing this for me. But just requesting this so if somebody like me wants to use ctrl+e as the Editor Toggle key, then can.