Skip to content

Commit

Permalink
Fix copying text
Browse files Browse the repository at this point in the history
  • Loading branch information
icewolfz committed Aug 19, 2017
1 parent dbb3e09 commit dd6dd6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,14 @@
c.popup(remote.getCurrentWindow());
}, false);

['cut', 'copy', 'paste'].forEach(function (event) {
['cut', 'copy'].forEach(function (event) {
document.addEventListener(event, function (e) {
if (document.activeElement && (document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA")) {

if ($(document.activeElement).val().length > 0 || !client.display.hasSelection)
return;
}
if (client.display.hasSelection > 0)
if (client.display.hasSelection)
{
clipboard.writeText(client.display.selection, 'selection');
e.preventDefault();
e.stopPropagation();
}
});
});

Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Added Current color scheme to reset colors back to original colors
- Add --disable-gpu command line arg
- Add linux Categories
- **Changed:**
- Changed how copy system works for main client
- **Fixed:**
- When picking a predefined color scheme it was not saving
- Display scrolling in split view or scroll lock when new text added
Expand Down

0 comments on commit dd6dd6e

Please sign in to comment.