Jskad has a new menu item, 'Copy as Unicode', which does a
TMW->Unicode conversion.
This commit is contained in:
parent
25f5440218
commit
9cfedadab7
4 changed files with 183 additions and 58 deletions
|
@ -365,6 +365,14 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
});
|
||||
editMenu.add(copyItem);
|
||||
|
||||
JMenuItem copyAsUnicodeItem = new JMenuItem("Copy as Unicode");
|
||||
copyAsUnicodeItem.addActionListener(new ThdlActionListener() {
|
||||
public void theRealActionPerformed(ActionEvent e) {
|
||||
copyAsUnicodeSelection();
|
||||
}
|
||||
});
|
||||
editMenu.add(copyAsUnicodeItem);
|
||||
|
||||
JMenuItem pasteItem = new JMenuItem("Paste");
|
||||
pasteItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V,
|
||||
java.awt.Event.CTRL_MASK)); //Ctrl-v
|
||||
|
@ -1147,6 +1155,10 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
dp.copy();
|
||||
}
|
||||
|
||||
private void copyAsUnicodeSelection() {
|
||||
dp.copyAsUnicode();
|
||||
}
|
||||
|
||||
private void pasteSelection() {
|
||||
dp.paste(dp.getCaret().getDot());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue