Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

paste the linux way :)copy seems to be impossible:(

  • Loading branch information...
commit 16fb6c90cced2a79678667c4e04cf4e717cbb7b7 1 parent b5b5e1e
@nightwing nightwing authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 lib/ace/mouse/default_handlers.js
View
14 lib/ace/mouse/default_handlers.js
@@ -41,7 +41,6 @@
define(function(require, exports, module) {
"use strict";
-var event = require("../lib/event");
var dom = require("../lib/dom");
var BrowserFocus = require("../lib/browser_focus").BrowserFocus;
@@ -91,10 +90,15 @@ function DefaultHandlers(mouseHandler) {
editor.moveCursorToPosition(pos);
editor.selection.clearSelection();
}
- if (button == 2) {
- editor.textInput.onContextMenu({x: ev.clientX, y: ev.clientY}, selectionEmpty);
- event.capture(editor.container, function(){}, editor.textInput.onContextMenuClose);
- }
+ // 2: contextmenu, 1: linux paste
+ this.moveTextarea = function() {
+ editor.textInput.onContextMenu({x: _self.x, y: _self.y});
+ };
+ this.moveTextareaEnd = editor.textInput.onContextMenuClose;
+
+ editor.textInput.onContextMenu({x: this.x, y: this.y}, selectionEmpty);
+ this.captureMouse(ev, "moveTextarea");
+
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.