LeaVerou / inspire.js

Lean, hackable, extensible slide deck framework. Previously known as CSSS.
https://inspirejs.org
MIT License
1.73k stars 254 forks source link

Keyboard issues #9

Open panayiotisa opened 13 years ago

panayiotisa commented 13 years ago

CSSS keyboard shortcuts conflict with firefox defaults and contol-shift is not an escape option. Example: control h opens the history sidebar, and control-shift h opens the history sidebar in its own window.

I think a better approach would be to delegate the choice of the modifier to the browser. Just issue some hidden navigation elements (anchors?) with the appropriate accesskey attribute. It is suitable only for keystrokes that produce printable characters but I think it is more straightforward and extensible. And hopefully every decent browser supports it.

In firefox the default modifier for web content shortcuts is alt-shit (probably command-shift on mac).

Also I had various problems with snippet editing but I am unable to reproduce them now. Either they were automagically fixed or I was doing something wrong.

LeaVerou commented 13 years ago

What about Alt?

panayiotisa commented 13 years ago

Alt is the default modifier for chrome shortcuts

LeaVerou commented 13 years ago

How is that a problem, if it doesn't conflict with any built-in shortcuts?

panayiotisa commented 13 years ago

Extensions are chrome too.

LeaVerou commented 13 years ago

Do you have any actual conflicts in mind or is it a theoretical problem?

panayiotisa commented 13 years ago

No conflicts with my set of extensions, but if a tree falls and there is nobody there to hear it, doesn't it still make a sound?

I think the current approach adds complexity without any substantial benefit