Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EcentObj.ctrlKey is not working in firefox browser

Rohit Chaturvedi-OracleMar 31 2017 — edited Apr 3 2017

Hi Team,

I have one requirement in our ADF project , in which we have one table and user can select multiple slots in that table by doing “control + click” activity .

Actually I want to select multiple slots in the table by doing control+click event and want to perform some operation on all selected slots at once .

It is same as we select multiple folders in our directory by doing control+click event . The only change is that I want to do it in table.

Here is the screen shot :

SLOT.JPG

For that I am using below java script code :

function UnblockOnCtrlPress(evt) {

var evtobj = window.event ? event : evt;

  **if (evtobj.ctrlKey) {**

       **alert(‘control key pressed’);**

  **}**

  **else {**

       **alert("Control Key Not pressed!!!");**

    **}**

}

And in my JSFF page i am calling it like :

<af:clientListener method="blockOnCtrlPress(this)" type="mouseDown"/>

This code is working fine in IE and CROME browser but in Mozilla Firefox it is giving issue because Mozilla Firefox browser does not have window event. evtobj.ctrlKey is undefined in Mozial firefiox .

So is there any other way to do this task in ADF or in java script? Kindly suggest.

I am using JDeveloper 11.1.1.9.0 version .

Thanks in advance.

Best Regards

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 1 2017
Added on Mar 31 2017
1 comment
424 views