Browse files

Alternative paste implementation

  • Loading branch information...
1 parent bb940f3 commit 6c699a7b6836ffe468ac558a896dd8f5a5471781 R. Saravanan committed Oct 31, 2012
Showing with 21 additions and 14 deletions.
  1. +11 −7 docs/troubleshooting.rst
  2. +9 −6 docs/usage.rst
  3. +1 −1 graphterm/www/graphterm.js
View
18 docs/troubleshooting.rst
@@ -42,17 +42,21 @@ to restore some, but not all, of GraphTerm features.
How do I paste text?
----------------------------------------------------------------------------------
-There are two ways to paste text from the clipboard into GraphTerm.
-First, you can can use the keyboard shortcut *Control-T* to open a
+For certain browsers (e.g., desktop Chrome/Safari),
+the usual *Command-V* or *Control-V* key sequence should directly
+paste text from the clipboard. If that doesn't work there are a couple
+of other ways to paste text.
+First, you can use the keyboard shortcut *Control-T* to open a
popup window, paste the text into the popup window using the
browser's paste menu command or a keyboard shortcut,
-like *Command/Control-V*, and then type *Control-T* again to
+such as *Command/Control-V*, and then type *Control-T* again to
insert the text at the GraphTerm cursor location.
(The popup paste window can also be accessed from the *Actions* menu.)
-Alternatively, you can *click on the cursor* before beginning the
-paste operation and then paste the text directly. This second
-technique may not always work well for text copied from non-plain
-text sources, such as a web page. A final workaround is to paste the
+Alternatively, for some browsers, and on the iPad, you can *click on the cursor*
+before beginning the paste operation and then paste the text directly.
+This second technique may not always work well for text copied from non-plain
+text sources, such as a web page.
+A final workaround is to paste the
text into a temporary location as plain text (such as in a plain text
editor), and then copy/paste it from there to GraphTerm.
View
15 docs/usage.rst
@@ -119,16 +119,19 @@ Themes, selected using the top menu, are a work in progress, especially the 3-D
Copy/paste
================================================================
-There are two ways to paste text from the clipboard into GraphTerm.
-First, you can can use the keyboard shortcut *Control-T* to open a
+For certain browsers (e.g., desktop Chrome/Safari),
+the usual *Command-V* or *Control-V* key sequence should directly
+paste text from the clipboard. If that doesn't work, there are a couple
+of other ways to paste text.
+First, you can use the keyboard shortcut *Control-T* to open a
popup window, paste the text into the popup window using the
browser's paste menu command or a keyboard shortcut,
-like *Command/Control-V*, and then type *Control-T* again to
+such as *Command/Control-V*, and then type *Control-T* again to
insert the text at the GraphTerm cursor location.
(The popup paste window can also be accessed from the *Actions* menu.)
-Alternatively, you can *click on the cursor* before beginning the
-paste operation and then paste the text directly. This second
-technique may not always work well for text copied from non-plain
+Alternatively, for some browsers, and on the iPad, you can *click on the cursor*
+before beginning the paste operation and then paste the text directly.
+This second technique may not always work well for text copied from non-plain
text sources, such as a web page.
View
2 graphterm/www/graphterm.js
@@ -21,7 +21,7 @@ var gMobileDisplay = gSafariIPad;
var gDefaultEditor = gMobileDisplay ? "ckeditor" : "ace";
-var gAltPasteImpl = !gFirefoxBrowser;
+var gAltPasteImpl = !gFirefoxBrowser && !gMobileDisplay; // Alternative paste implemention (using hidden textarea)
var gPasteSpecialKeycode = 20; // Control-T shortcut for Paste Special

0 comments on commit 6c699a7

Please sign in to comment.