mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Updating key mappings for cut and paste.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5339 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -288,7 +288,7 @@ public class SparkTransferManager {
|
||||
|
||||
|
||||
final ChatInputEditor chatSendField = room.getChatInputEditor();
|
||||
chatSendField.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control v"), "paste");
|
||||
chatSendField.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl v"), "paste");
|
||||
|
||||
chatSendField.getActionMap().put("paste", new AbstractAction("paste") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
@ -149,7 +149,7 @@ public class ChatArea extends JTextPane implements MouseListener, MouseMotionLis
|
||||
setFont(new Font("Dialog", Font.PLAIN, 12));
|
||||
|
||||
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control x"), "cut");
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl x"), "cut");
|
||||
|
||||
getActionMap().put("cut", new AbstractAction("cut") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
@ -157,7 +157,7 @@ public class ChatArea extends JTextPane implements MouseListener, MouseMotionLis
|
||||
}
|
||||
});
|
||||
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control c"), "copy");
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl c"), "copy");
|
||||
|
||||
getActionMap().put("copy", new AbstractAction("copy") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
@ -173,7 +173,7 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
|
||||
});
|
||||
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("ESCAPE"), "escape");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control W"), "escape");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl W"), "escape");
|
||||
|
||||
this.getActionMap().put("escape", new AbstractAction("escape") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
@ -215,7 +215,7 @@ public final class ContactList extends JPanel implements ActionListener, Contact
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control N"), "searchContacts");
|
||||
getActionMap().put("searchContacts", new AbstractAction("searchContacts") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
searchContacts("");
|
||||
// searchContacts("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -123,7 +123,7 @@ public class TranscriptWindow extends ChatArea {
|
||||
});
|
||||
|
||||
// Make sure ctrl-c works
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control c"), "copy");
|
||||
getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl c"), "copy");
|
||||
|
||||
getActionMap().put("copy", new AbstractAction("copy") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
@ -80,7 +80,7 @@ public class JabberVersion implements Plugin {
|
||||
}, packetFilter);
|
||||
|
||||
final ContactList contactList = SparkManager.getWorkspace().getContactList();
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F11"), "viewClient");
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F11"), "viewClient");
|
||||
contactList.addContextMenuListener(new ContextMenuListener() {
|
||||
public void poppingUp(final Object component, JPopupMenu popup) {
|
||||
if (!(component instanceof ContactItem)) {
|
||||
|
||||
@ -64,7 +64,7 @@ public class ScratchPadPlugin implements Plugin {
|
||||
|
||||
public void initialize() {
|
||||
contactList = SparkManager.getWorkspace().getContactList();
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F6"), "viewNotes");
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes");
|
||||
|
||||
contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
@ -73,7 +73,7 @@ public class ScratchPadPlugin implements Plugin {
|
||||
}
|
||||
});
|
||||
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F5"), "viewTasks");
|
||||
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F5"), "viewTasks");
|
||||
|
||||
contactList.getActionMap().put("viewTasks", new AbstractAction("viewTasks") {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
Reference in New Issue
Block a user