Matthias Bussonnier
8aa3815130
Add notion of action that differs from shortcuts.
...
This decouple the notion of shortcut from the notion of executed "action"
This allow the shortcuts manager to be purely describe as data, and the
same action to be later refered to either from the shortcut, from a toolbar
button or a menu.
This also implement a more complete keyboard shortcut handler which is
able ton interpete sequences like `Cmd-X,Meta-v` By storing the
shortcuts in a tree.
11 years ago
Matthias BUSSONNIER
5b355936df
Update to codemirror 4
...
Update to codemirror 4.6 and update most notebook to work wiht it
this include keyevent that where triggerd twice and the re-writing of
ipython-gfm anf ipython mode to work with require.
11 years ago
Jonathan Frederic
ee76005bc2
More review changes
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago
Thomas Kluyver
982aab67ba
Merge pull request #5290 from jdfreder/dual_tests
...
Add dual mode JS tests
12 years ago
MinRK
bfb3d8ec30
check that a handler is actually registered in ShortcutManager.handles
...
there are a few shortcuts that do not specify handlers
(just for quick help contents),
and this was preventing the actual events from ever firing.
12 years ago
Jonathan Frederic
e1daedf95b
Fixed keyboard.js indent break
12 years ago
Jonathan Frederic
607b96b19a
Actually remove the trigger keydown method
12 years ago
Jonathan Frederic
ae2b0800cf
Partial fix of problems b/c keydown move
12 years ago
Jonathan Frederic
1b46a777fb
Removed trigger keydown from keyboard.js,
...
also added a bunch of missing semicolons (jshint)
12 years ago
Min RK
0ae0216b12
Merge pull request #5049 from ivanov/quickhelp-update
...
update quickhelp on adding and removing shortcuts
12 years ago
Brian E. Granger
bfdbdd456c
Merge pull request #5391 from jdfreder/netscape-keyboard
...
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
54d9eb4358
really fix the '-' key shortcuts now
12 years ago
Paul Ivanov
77bf4a72dd
better handling of minus
12 years ago
Jonathan Frederic
a08fbff5d9
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
21ebaf2e32
handle keyboard shortcuts ending with '-'
12 years ago
Paul Ivanov
4cf1717980
use - for shortcut separators
12 years ago
Paul Ivanov
b9ef37ac26
semicolon fixes buttress half of my js commits
12 years ago
Paul Ivanov
61b47695e4
renamed 'use_shortcut' method to 'handles'
12 years ago
Paul Ivanov
1c23dee141
remove recreation of QuickHelp
12 years ago
Paul Ivanov
8bf4ffa2ca
rebuild.QuickHelp event sets the dirty bit
...
QuickHelp is rebuilt on show if the dirty bit was set.
12 years ago
Paul Ivanov
cdb7967cc2
removing keyboard shortcuts should also update help
12 years ago
Paul Ivanov
4a287569fc
update notebook quickhelp on new shortcuts
12 years ago
Paul Ivanov
2c9ff376a2
added new use_shortcut method to shortcuts
...
this way, you can ask if a particular event will be handled by the
shortcuts system. This takes away the need to special-case many
different possible keys which should be ignored by codemirror by
ignoring them en masse.
12 years ago
Brian E. Granger
ec6ea72873
Adding utility functions.
12 years ago
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
12 years ago