Hello we’re using dhtmlxPro3.6 and I’m trying to implement the component dhtmlxmessage --> “alert”
dhtmlx.alert({
title:“title”,
ok:“Close”,
text:"To copy the content: CTRL+C
",
});
To be clear, the user can select the value on the input but when CTRL + C doesn’t work only work right click copy and on FF.
Can you help me with this please, i didn’t found any info about this.
Thanks in advance!
Add the next line
dhtmlx.message.keyboard = false;
as result dhtmlx.message will not try to block keypress events
Hello!
That doesn’t solve the problem, beacuse keep calling the function modal_key and just ignore the if, and keep returning false, and doesn’t work the keyboard.
function modal_key(e){
if (_dhx_msg_cfg){
e = e||event;
var code = e.which||event.keyCode;
if (dhtmlx.message.keyboard){
if (code == 13 || code == 32)
callback(_dhx_msg_cfg, true);
if (code == 27)
callback(_dhx_msg_cfg, false);
}
if (e.preventDefault)
e.preventDefault();
return !(e.cancelBubble = true);
}
}
there is a way to said to message that i don’t need the modal_key function?
I solve this problem changing the alert into modalbox
dhtmlx.modalbox({
title:“title”,
ok:“buttonclose”,
text:“Pour copier l’url : CTRL+C
<input type=‘text’ id=‘foo’ value=‘testtt’’>”,
keyboard:true
});
Thanks in advance