From c5af9fa891d3cd8bc9c345c7a77d05b6802141c8 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber Date: Fri, 9 May 2014 09:32:48 +0200 Subject: [PATCH] Bug 434294 - [terminal] Make Mac COMMAND key to always act locally On Mac, the COMMAND key is expected to always perform keyboard shortcuts on the local host, or emulate keys like HOME and END. This change now supports the COMMAND key as expected. Also, - configured the VT100TerminalControl.java to forced use of UTF-8 encoding since one comment has non-US-ASCII characters - added the CTRL+INSERT binding for "Copy", - converted CTRL+SHIFT in the bindings into M1+M2 which is the preferred syntax according to the org.eclipse.ui.bindings extension point description ("sequence" section). Change-Id: I49321e3855b9ccf53fcb49a5346cfedff4c0c8c0 Signed-off-by: Martin Oberhuber --- .../org.eclipse.core.resources.prefs | 2 + plugins/org.eclipse.tm.terminal/plugin.xml | 50 +++++++++++++++++-- .../emulator/VT100TerminalControl.java | 13 ++++- 3 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 plugins/org.eclipse.tm.terminal/.settings/org.eclipse.core.resources.prefs diff --git a/plugins/org.eclipse.tm.terminal/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.tm.terminal/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..775bde20f32 --- /dev/null +++ b/plugins/org.eclipse.tm.terminal/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding//src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java=UTF-8 diff --git a/plugins/org.eclipse.tm.terminal/plugin.xml b/plugins/org.eclipse.tm.terminal/plugin.xml index 0df5c2bd865..720495b495e 100644 --- a/plugins/org.eclipse.tm.terminal/plugin.xml +++ b/plugins/org.eclipse.tm.terminal/plugin.xml @@ -12,6 +12,7 @@ # Martin Oberhuber (Wind River) - fixed copyright headers and beautified # Michael Scharf (Wind River) - [237425] undefined tm.terminal command # Martin Oberhuber (Wind River) - [378691][api] push Preferences into the Widget +# Martin Oberhuber (Wind River) - [434294] Add Mac bindings with COMMAND --> @@ -125,21 +126,64 @@ contextId="org.eclipse.tm.terminal.TerminalContext" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="Alt+W"/> + + sequence="M1+INSERT"/> + + + sequence="M2+INSERT"/> + sequence="M1+M2+V"/> + + + +