Skip to Main Content

APEX

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!

How do I navigate form items using the "enter" key rather than the "tab" key ?

PaulPNov 2 2020 — edited Nov 3 2020

APEX 19.2, Chrome lastest version
I need to use the enter key as well as the tab key for item navigation. My client prefers to use the enter key to navigate between items because they use the keypad on the right of the key board and they only want to use the right hand...for speed. I was able to use the following Javascript function defined in the page attributes

function nextItem(PageItem) {
  if (event.which == 13) {
  document.getElementById(PageItem).focus();
  }
 }

together with the following code :
onkeypress = "nextItem('Pn_TARGET_ITEM _NAME')";
in the Custom Attributes of the Advance section for the item.
It works for Text Items but NOT for popup LOV fields. Why does it not work for popup LOVs and is there a better way to do this?
thanks in advance
PaulP

This post has been answered by PaulP on Nov 4 2020
Jump to Answer
Comments
Post Details
Added on Nov 2 2020
2 comments
2,276 views