Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Page.registerKey("Backspace" ...) does not work for canEdit(false) FormItems [bug?]

    To prevent "Go Privious Page" on press "Backspace" button, I am trying this code:

    Page.registerKey("Backspace", new PageKeyHandler() {
    public void execute(String keyName) {
    // trying to prevent "Backspace" as "GoBack" action
    cancel();
    }
    });

    It works fine for editable forms and formsItems. But for TextItem.setCanEdit(false) "Backspace" is still "Go Back". Is it a bug?

    SmartClient Version: v10.0p_2015-11-06/LGPL Development Only (built 2015-11-06)
    IE11

    #2
    We've made a change to address this issue. As of the next nightly build (Dec 3 or above), your code should prevent native navigation on backspace keypress even when focus is in a canEdit:false text field.

    We've also decided to go ahead and suppress backspace navigation by default in the 10.1 branch - this will be governed by an attribute on the Page class -- "suppressBackspaceNavigation".

    Comment


      #3
      Hi Isomorphic
      The issue seems fixed now. Thank you very much!

      Comment

      Working...
      X