Gitlab CSE Unil

Commit e18d609e authored by M. Chardon's avatar M. Chardon
Browse files

correction raccourcis clavier sur les environnements

parent b34734da
......@@ -57,20 +57,14 @@ define([
event: "keydown",
//ctxt: "*",
fn: function(){
if (!activeTool) {
activeTool = tools.getActiveTool();
tools.activateTool('pan');
}
$("#tool-pan").click();
return false;
}
}, {
event: "keyup",
//ctxt: "*",
fn: function(){
if (activeTool) {
tools.activateTool(activeTool);
activeTool = null;
}
$("#tool-pan").click();
return false;
}
}],
......@@ -80,7 +74,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('select');
$("#tool-select").click();
return false;
}
}],
......@@ -105,7 +99,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('drawing');
$("#tool-drawing").click();
return false;
}
}],
......@@ -116,7 +110,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('arrow');
$("#tool-arrow").click();
return false;
}
}],
......@@ -127,7 +121,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('lines');
$("#tool-lines").click();
return false;
}
}],
......@@ -137,7 +131,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('ellipse');
$("#tool-ellipse").click();
return false;
}
}],
......@@ -147,7 +141,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('rectangle');
$("#tool-rectangle").click();
return false;
}
}],
......@@ -157,7 +151,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('text');
$("#tool-text").click();
return false;
}
}]
......
......@@ -57,20 +57,14 @@ define([
event: "keydown",
ctxt: "edit review",
fn: function(){
if (!activeTool) {
activeTool = tools.getActiveTool();
tools.activateTool('pan');
}
$("#tool-pan").click();
return false;
}
}, {
event: "keyup",
ctxt: "edit review",
fn: function(){
if (activeTool) {
tools.activateTool(activeTool);
activeTool = null;
}
$("#tool-pan").click();
return false;
}
}],
......@@ -90,7 +84,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('select');
$("#tool-select").click();
return false;
}
}],
......@@ -117,7 +111,7 @@ define([
fn: function () {
if ($("#tool-concordantstr").is(":disabled"))
return false;
tools.activateTool('concordantstr');
$("#tool-concordantstr").click();
return false;
}
},{
......@@ -138,7 +132,7 @@ define([
fn: function(){
if ($("#tool-discordantstr").is(":disabled"))
return false;
tools.activateTool('discordantstr');
$("#tool-discordantstr").click();
return false;
}
},{
......@@ -167,7 +161,7 @@ define([
fn: function(){
if ($("#tool-fieldedges").is(":disabled"))
return false;
tools.activateTool('fieldedges');
$("#tool-fieldedges").click();
return false;
}
}],
......@@ -186,7 +180,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('arrow');
$("#tool-arrow").click();
return false;
}
}],
......@@ -213,14 +207,14 @@ define([
// T -> [edit]:activate text tool
't': [{
/*'t': [{
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('text');
$("#tool-text").click();
return false;
}
}],
}],*/
// Z -> [edit]:activate zone tool
......@@ -230,7 +224,7 @@ define([
fn: function(){
if ($("#tool-cmsarea").is(":disabled"))
return false;
tools.activateTool('cmsarea');
$("#tool-cmsarea").click();
return false;
}
}],
......
......@@ -57,20 +57,7 @@ define([
event: "keydown",
//ctxt: "*",
fn: function(){
if (!activeTool) {
activeTool = tools.getActiveTool();
tools.activateTool('pan');
}
return false;
}
}, {
event: "keyup",
//ctxt: "*",
fn: function(){
if (activeTool) {
tools.activateTool(activeTool);
activeTool = null;
}
$("#tool-pan").click();
return false;
}
}],
......@@ -80,7 +67,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('select');
$("#tool-select").click();
return false;
}
}],
......@@ -105,7 +92,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('drawinggeo');
$("#tool-drawing").click();
return false;
}
}],
......@@ -116,7 +103,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('arrowgeo');
$("#tool-arrow").click();
return false;
}
}],
......@@ -127,7 +114,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('linesgeo');
$("#tool-lines").click();
return false;
}
}],
......@@ -137,7 +124,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('ellipsegeo');
$("#tool-ellipse").click();
return false;
}
}],
......@@ -147,7 +134,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('rectanglegeo');
$("#tool-rectangle").click();
return false;
}
}],
......@@ -157,7 +144,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('textgeo');
$("#tool-text").click();
return false;
}
}]
......
......@@ -57,20 +57,14 @@ define([
event: "keydown",
//ctxt: "*",
fn: function(){
if (!activeTool) {
activeTool = tools.getActiveTool();
tools.activateTool('pan');
}
$("#tool-pan").click();
return false;
}
}, {
event: "keyup",
//ctxt: "*",
fn: function(){
if (activeTool) {
tools.activateTool(activeTool);
activeTool = null;
}
$("#tool-pan").click();
return false;
}
}],
......@@ -80,7 +74,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('select');
$("#tool-select").click();
return false;
}
}],
......@@ -105,7 +99,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('drawing');
$("#tool-drawing").click();
return false;
}
}],
......@@ -116,7 +110,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('arrow');
$("#tool-arrow").click();
return false;
}
}],
......@@ -127,7 +121,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('lines');
$("#tool-lines").click();
return false;
}
}],
......@@ -137,7 +131,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('ellipse');
$("#tool-ellipse").click();
return false;
}
}],
......@@ -147,7 +141,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('rectangle');
$("#tool-rectangle").click();
return false;
}
}],
......@@ -157,7 +151,7 @@ define([
event: "keydown",
ctxt: "edit",
fn: function(){
tools.activateTool('text');
$("#tool-text").click();
return false;
}
}]
......
......@@ -797,6 +797,9 @@ body.home #dlg-about-adim .modal-dialog {
.panel-dark .badge {
background-color: #919191;
}
.panel-dark .badge-warning {
background-color: #ffc107;
}
.panel-group .panel-heading + .panel-collapse .panel-body {
border-top: 1px solid #565656;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment