Add Ctrl+Down/Up

move entire table one row Up/Down
pull/40/head
Kai Labusch 5 years ago
parent 655a1f232e
commit 4ae032ea87

@ -92,6 +92,8 @@ We also provide some [Python tools](https://github.com/qurator-spk/neath/tree/ma
| Down | Move one row down | | Down | Move one row down |
| PageDown | Move page down | | PageDown | Move page down |
| PageUp | Move page up | | 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 | | s t | Start new sentence in current row |
| m e | Merge current row with row above | | m e | Merge current row with row above |

@ -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() { function() {
if (editingTd != null) return true; if (editingTd != null) return true;
@ -868,9 +885,27 @@ function setupInterface(data, file, urls) {
else { else {
prev.children('.editable')[pos].focus(); 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() { function() {
if (editingTd != null) return true; if (editingTd != null) return true;
@ -884,7 +919,11 @@ function setupInterface(data, file, urls) {
else { else {
next.children('.editable')[pos].focus(); next.children('.editable')[pos].focus();
} }
}); },
is_solitary: true,
}
);
wnd_listener.sequence_combo('l a', wnd_listener.sequence_combo('l a',
function() { function() {

Loading…
Cancel
Save