mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-12 13:19:53 +02:00
Add Ctrl+Down/Up
move entire table one row Up/Down
This commit is contained in:
parent
655a1f232e
commit
4ae032ea87
2 changed files with 64 additions and 23 deletions
|
@ -92,6 +92,8 @@ We also provide some [Python tools](https://github.com/qurator-spk/neath/tree/ma
|
|||
| Down | Move one row down |
|
||||
| PageDown | Move page down |
|
||||
| PageUp | Move page up |
|
||||
| Crtl+Up | Move entire table one row up |
|
||||
| Crtl+Down| Move entire table one row down |
|
||||
|----------|--------------------------------------------|
|
||||
| s t | Start new sentence in current row |
|
||||
| m e | Merge current row with row above |
|
||||
|
|
45
neath.js
45
neath.js
|
@ -854,7 +854,24 @@ function setupInterface(data, file, urls) {
|
|||
}
|
||||
});
|
||||
|
||||
wnd_listener.simple_combo('up',
|
||||
wnd_listener.register_combo(
|
||||
{
|
||||
keys: 'meta up',
|
||||
on_keydown:
|
||||
function() {
|
||||
if (editingTd != null) return true;
|
||||
|
||||
stepsBackward(1);
|
||||
},
|
||||
is_solitary: true
|
||||
}
|
||||
);
|
||||
|
||||
wnd_listener.register_combo(
|
||||
{
|
||||
keys: 'up',
|
||||
|
||||
on_keydown:
|
||||
function() {
|
||||
if (editingTd != null) return true;
|
||||
|
||||
|
@ -868,9 +885,27 @@ function setupInterface(data, file, urls) {
|
|||
else {
|
||||
prev.children('.editable')[pos].focus();
|
||||
}
|
||||
},
|
||||
is_solitary : true
|
||||
});
|
||||
|
||||
wnd_listener.simple_combo('down',
|
||||
wnd_listener.register_combo(
|
||||
{
|
||||
keys: 'meta down',
|
||||
|
||||
on_keydown: function() {
|
||||
if (editingTd != null) return true;
|
||||
|
||||
stepsForward(1);
|
||||
},
|
||||
is_solitary: true
|
||||
}
|
||||
);
|
||||
|
||||
wnd_listener.register_combo(
|
||||
{
|
||||
keys : 'down',
|
||||
on_keydown:
|
||||
function() {
|
||||
if (editingTd != null) return true;
|
||||
|
||||
|
@ -884,7 +919,11 @@ function setupInterface(data, file, urls) {
|
|||
else {
|
||||
next.children('.editable')[pos].focus();
|
||||
}
|
||||
});
|
||||
},
|
||||
is_solitary: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
wnd_listener.sequence_combo('l a',
|
||||
function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue