mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
New maps in progress... (Init multiple selection)
This commit is contained in:
parent
e5b6cf40dc
commit
38e7056df9
@ -36,6 +36,8 @@ MapController.prototype._minimap = null;
|
|||||||
MapController.prototype._zoomManager = null;
|
MapController.prototype._zoomManager = null;
|
||||||
MapController.prototype._slider = null;
|
MapController.prototype._slider = null;
|
||||||
MapController.prototype._relation = null;
|
MapController.prototype._relation = null;
|
||||||
|
MapController.prototype._disabled_drag_zoom = false;
|
||||||
|
MapController.prototype._ctrl_key = 17;
|
||||||
|
|
||||||
/*-----------------------------------------------*/
|
/*-----------------------------------------------*/
|
||||||
/*--------------------Methods--------------------*/
|
/*--------------------Methods--------------------*/
|
||||||
@ -1281,6 +1283,22 @@ MapController.prototype.resize_node = function(item, handler, delta_x, delta_y)
|
|||||||
MapController.prototype.init_events = function(principalObject) {
|
MapController.prototype.init_events = function(principalObject) {
|
||||||
self = this;
|
self = this;
|
||||||
|
|
||||||
|
d3.select(window)
|
||||||
|
.on("keydown", function() {
|
||||||
|
// ctrl key
|
||||||
|
if(d3.event.keyCode === self._ctrl_key) {
|
||||||
|
console.log("Event", d3.event);
|
||||||
|
console.log("DOWN");
|
||||||
|
console.log("CTRL");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.on("keyup", function() {
|
||||||
|
if(d3.event.keyCode === self._ctrl_key) {
|
||||||
|
console.log("UP");
|
||||||
|
console.log("CTRL");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var node_menu = [
|
var node_menu = [
|
||||||
{
|
{
|
||||||
title: 'Show details',
|
title: 'Show details',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user