Made the following changes: (1) renamed DuffPane's copySelection, pasteSelection, etc. to copy, paste and so forth, which override JTextComponent's methods by those names: Andres, please change the translation tool accordingly to use these new methods if that it necessary; (2) in order to allow for easier integration of Jskad with other tools such as QuillDriver, I changed DuffPane to rely on a Keymap instead of a KeyListener for its default key intercepts; this addresses the comments to bug 617156. Note that I have been working on Mac OS X and have not extensively tested my changes on a PC yet.
This commit is contained in:
parent
e95e41aef0
commit
7a495bc720
2 changed files with 104 additions and 174 deletions
|
@ -809,11 +809,11 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
}
|
||||
|
||||
private void cutSelection() {
|
||||
dp.cutCurrentSelection();
|
||||
dp.cut();
|
||||
}
|
||||
|
||||
private void copySelection() {
|
||||
dp.copyCurrentSelection();
|
||||
dp.copy();
|
||||
}
|
||||
|
||||
private void pasteSelection() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue