1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 05:54:12 +01:00

Fix some major mode changing bugs. Closes issue #55.

--HG--
branch : mode-refactoring
This commit is contained in:
Kris Maglione
2010-10-06 10:34:28 -04:00
parent dd3d79ea73
commit 41335adaae
8 changed files with 274 additions and 242 deletions

View File

@@ -162,7 +162,7 @@ const Dactyl = Module("dactyl", {
*
* @returns {string}
*/
clipboardRead: function clipboardRead() {
clipboardRead: function clipboardRead(getClipboard) {
let str = null;
try {
@@ -171,7 +171,7 @@ const Dactyl = Module("dactyl", {
transferable.addDataFlavor("text/unicode");
if (clipboard.supportsSelectionClipboard())
if (!getClipboard && clipboard.supportsSelectionClipboard())
clipboard.getData(transferable, clipboard.kSelectionClipboard);
else
clipboard.getData(transferable, clipboard.kGlobalClipboard);