Min RK
1f5f0be854
address code review
...
- remove ctrl shortcuts for scrolling
- rename scroll actions 'scroll-cell-center', 'scroll-cell-top'
- rename added notebook method `scroll_cell_percent`
11 years ago
Alexander Belopolsky
6d5c0725d9
Separated recenter and top actions.
11 years ago
Alexander Belopolsky
8f111d0f8d
Added basic scroll to bottom binding for ctrl-l.
11 years ago
Thomas Kluyver
73727ed5ae
Remove Ctrl-J & Ctrl-K shortcuts
...
Closes gh-7716
11 years ago
Matthias Bussonnier
ed7bcb5359
close pager on escape on command mode
11 years ago
Matthias Bussonnier
f8fe41dd67
add test warning shadow
11 years ago
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
87dc17ccbc
cleanup style fixed in separate PR and few other things
11 years ago
Matthias Bussonnier
e0f19a386e
protect agains undefined
11 years ago
Matthias Bussonnier
804d89351b
rework keyboard management to avoit completer and up/down bugs
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
f6adf3e064
Fixed dumb typo,
...
forgot to update scrollmanager ref to scroll_manager.
12 years ago
Jonathan Frederic
e843a3d0e4
Fixed rebase indents
12 years ago
Jonathan Frederic
7e7683a587
Added scroll mode selector,
...
fixed rebase conflicts.
12 years ago
Jonathan Frederic
c2d72353a2
Fixed bug
12 years ago
Jonathan Frederic
06ad682d68
Add scrollmanager
12 years ago
jon
70ffd96eb9
Added some nice comments,
...
so devs can easily figure out what options to pass
into the objects they want to construct.
12 years ago
jon
d9ab2d203a
In person review with @ellisonbg
12 years ago
Jonathan Frederic
0edfdbc703
Return dicts instead of classes,
...
this makes require.js more Python import like.
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
Paul Ivanov
7778aed8a8
inserting new cells preserves type closes #4917
12 years ago
Paul Ivanov
fe7193e5af
fix cursor keys in long lines wrapped in markdown
12 years ago
Paul Ivanov
354ff54aa5
remove no-op placeholder edit mode "shortcuts"
12 years ago
MinRK
19c64f4b59
remove alt-- shortcut
...
replace with ctrl-shift--
alt is not safe for defaults
12 years ago
Min RK
0ae0216b12
Merge pull request #5049 from ivanov/quickhelp-update
...
update quickhelp on adding and removing shortcuts
12 years ago
Paul Ivanov
35c861f583
fix MacOS specific shortcuts, thanks @minrk
12 years ago
Paul Ivanov
4cf1717980
use - for shortcut separators
12 years ago
Paul Ivanov
6d6e0fb007
fix up and down arrows in the top and bottom cells
12 years ago
Paul Ivanov
09866e0ee1
go to the beginning of the line when entering cell
12 years ago
Paul Ivanov
8f17444c27
go to appropriate line when coming from another cell
...
Sets the cursor on the last line of the cell when moved up from the top
of the cell below, and sets the cursors to the first line when moving
down from the bottom of a last line.
Here, we retain the character that the cursor was on, so that users
wishing to have up-down functionality like one document can still use
this shortcut handler and simple adjust the at_top and at_bottom methods
12 years ago
Paul Ivanov
f68dcc3e57
it's only half true that I'm anal about semicolons
12 years ago
Paul Ivanov
6a2c4121f9
up and down keys no longer need special casing
12 years ago
Brian E. Granger
e374ca5ebb
Refactoring Notebook.command_mode.
12 years ago
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
12 years ago
Jonathan Frederic
ede116bee7
Get cell after first conditional
12 years ago
Jonathan Frederic
479bc6b37a
Check down too.
12 years ago
Jonathan Frederic
bebe51c158
Don't allow edit mode up arrow to continue past index == 0
12 years ago
Jonathan Frederic
39d39d0ea6
s/trigger_edit_mode/edit_mode
12 years ago
Jonathan Frederic
3bcee30e8c
Added comments to kbm and shrunk focus_cell lines
12 years ago
Jonathan Frederic
9451589e38
implemented whiteboard logic
12 years ago
Jonathan Frederic
0884716a7d
Re-added widget textbox blur fix FF
12 years ago
Jonathan Frederic
bfc51c2a29
Final touches?
12 years ago
Jonathan Frederic
c7860d8bc8
Post in person review
...
Removed logic for reverse ordered events
Removed almost all of the log statements
Removed list for should unfocus callbacks
Removed all the logic in focus_editor
Only call focus_editor if the keyboard was used to enter edit mode
12 years ago
Jonathan Frederic
3595c099c2
Fixed rebase problems
12 years ago
Jonathan Frederic
a6aaa8a886
Use is_focused for element kbman removal event
12 years ago
Jonathan Frederic
206d35a89e
DEBUG
...
Added lots of log calls and a couple small 'fixes' (attempts)
12 years ago
Jonathan Frederic
7913305312
jshint
12 years ago
MinRK
fd346d1790
fix remove event in KeyboardManager.register_events
...
only call enable on remove when focused.
fixes a bug where command mode could be entered inappropriately
when non-focused elements are removed from the page
(see first `@interact` example).
12 years ago
Brian E. Granger
31301c4194
Just close the pager with q, not toggle.
12 years ago