238 |
} else if(k.equals("Ctrl-E")) { |
} else if(k.equals("Ctrl-E")) { |
239 |
editPlainText(fallback.windows[1].cursor); |
editPlainText(fallback.windows[1].cursor); |
240 |
} else if(k.equals("Ctrl-L")) { |
} else if(k.equals("Ctrl-L")) { |
241 |
makeLink(); |
makeLink(1); |
242 |
|
} else if(k.equals("Alt-L")) { |
243 |
|
makeLink(-1); |
244 |
} else if(k.equals("Ctrl-F")) { |
} else if(k.equals("Ctrl-F")) { |
245 |
fallback.mode = fallback.SEARCH; |
fallback.mode = fallback.SEARCH; |
246 |
buffer = ""; |
buffer = ""; |
403 |
else if(w.viewIndex >= fallback.viewList.length) w.viewIndex = 0; |
else if(w.viewIndex >= fallback.viewList.length) w.viewIndex = 0; |
404 |
} |
} |
405 |
|
|
406 |
void makeLink() { |
void makeLink(int dir) { |
407 |
Cell c = fallback.windows[1].cursor; |
Cell c = fallback.windows[1].cursor; |
408 |
VStreamCellTexter ct = (VStreamCellTexter)c.space.getCellTexter(); |
VStreamCellTexter ct = (VStreamCellTexter)c.space.getCellTexter(); |
409 |
Enfilade1D from = ct.getEnfilade(c, null); |
Enfilade1D from = ct.getEnfilade(c, null); |
414 |
to = to.plus(m.getEnfilade()); |
to = to.plus(m.getEnfilade()); |
415 |
} |
} |
416 |
|
|
417 |
XuLink l = new XuLink(from, to); |
XuLink l; |
418 |
|
if(dir > 0) |
419 |
|
l = new XuLink(from, to); |
420 |
|
else |
421 |
|
l = new XuLink(to, from); |
422 |
|
|
423 |
fallback.xuIndexer.add(l); |
fallback.xuIndexer.add(l); |
424 |
|
|
425 |
marks = new ArrayList(); |
marks = new ArrayList(); |