Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-616

backspace doesn't work in hex input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.11.0
    • 5.10.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. open the background color dropdown in the toolbar
      2. focus on the hex input
      3. press the backspace key

      Current Result

      nothing deleted

      Expected Result

      delete 1 character

      Debug Information

      • it's handled by keikai doKey() but doesn't propagate to a browser

      Workaround

      var exWidget = {};
      zk.override(zss.Spreadsheet.prototype, exWidget, {
      /* zk default afterKeyDown() prevent default and make backspace not working. Because spreadsheet widget also listener the backspace */
      afterKeyDown_: function(event){
      if (event.domEvent.target.nodeName == 'INPUT')

      { // return; }

      exWidget.afterKeyDown_.apply(this, arguments);
      },
      });

            gordonhsu gordonhsu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: