Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hotkeys in webapps

When creating webapps, is there any guidelines on which keys you can use for your own hotkeys without overriding too many of the browsers default hotkeys.

For example I might want to have a custom copy command for copying entire sets of data that only makes sense for my program instead of just text. The logical combination for this would be Ctrl + C but that would destroy the default copy hotkey for normal text.

One solution I was thinking about is to only catch the hotkey when it "makes sense" but when you use some advanced custom selection it might be hard to differentiate if your data is focused, if text is selected or both.

Right now I am only using single keys as the hotkey, so just C for the example above and this seems to be what most other sites are doing too. The problem is that if you have text input this doesn't work so good. Is this the best solution?

To clarify I'm talking about advanced webapps that behave more like normal programs and not just some website presenting information(even though I think these guidlines would be valid for both cases). So for the copy example it might not be a big deal if you can't copy the text in the menu but when Ctrl + Tab, Alt + D or Ctrl + E doesn't work I would be really pissed, cough flash cough.

like image 721
Johoo Avatar asked May 23 '10 09:05

Johoo


People also ask

How do I find hotkeys on a web page?

On most web pages, word processors, and other programs, you can use the keyboard shortcut Command + F on a Mac , or Control + F on Windows to find what you need. A text box will then appear toward the top of the screen where you can enter the desired search term.

How do I set hotkeys in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard.


2 Answers

I think 85 Firefox Shortcuts for Mac and PC, Keyboard Shortcuts for the Opera Browser, Chrome's Keyboard and mouse shortcuts, Safari: Browser Window and Menu Shortcuts and Internet Explorer keyboard shortcuts may be helpful (other browser's hotkeys are similar). But always bear in mind that installed extensions can define their own hotkeys (e.g., I like Firebug's F12 a lot).

like image 193
Marcel Korpel Avatar answered Nov 05 '22 14:11

Marcel Korpel


How about using Shift + ?. I don't think it will override any important option (am I wrong?)

like image 1
modz0r Avatar answered Nov 05 '22 15:11

modz0r