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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user