Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Disable keyboard support

$
0
0

Hi experts,

 

I am trying to disable the keyboard support  for sap.ui.layout.form.FormElement (navigation with arrow keys) and sap.ui.commons.Splitter ( F6 navigation )

 

As far as I understand, I should override the "onsapnext" and "onsapprevious" methods (for FormElement) to disable it but I wasn't successful so far.

 

The FormElement looks like this:

 

var oElement = new sap.ui.layout.form.FormElement({  label : new sap.ui.commons.Label({  text : "Label"  }),  fields : [    oFormText =   new sap.ui.commons.TextField( {  value : "",  maxLength : "{/"+oGlobal.m_tablename+"/"+key+"/LEN}",  layoutData : new sap.ui.layout.form.GridElementData({  hCells : "3"  }),  //CUU Test deactivate arrow navigation  }).setEnabled(lEnable)  ],  });

My questions are:

1. How can I override onsapnext, onsapprevious-Methods?

2. Which method should I ovveride to disable F6-Navigaion of the Splitter object?

 

Any Ideas?

 

Thanks,

Cem


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>