Closed Bug 219798 Opened 21 years ago Closed 20 years ago

multiline textbox extended with XBL binding disables new line when ENTER key pressed

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mbokil, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030913 Firebird/0.6.1+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030913 Firebird/0.6.1+

A multiline textbox extended with an XBL binding disables the multiline
property. Create a multiline textbox. Extend it with a binding such as a
handler. Inherit the multiline property. Multiline becomes disabled and pressing
the enter key has no effect.

Reproducible: Always

Steps to Reproduce:
1. Create multiline textbox
2. Extend with XBL binding handler
3. Enter key in multiline textbox now fails

Actual Results:  
Multiline textbox VK_ENTER key fails to create a new line after textbox is
extended with a handler.

Expected Results:  
Multiline should have been inherited from the XUL textbox element.

CSS:
textbox {
    margin:0px;
    padding:3px;
    border: 0px solid transparent;
    -moz-binding: url("chrome://mozedit/content/keybindings.xbl#editorTextbox");
}

XUL:
<textbox id="content-editor" oninput="setModifiedState();" flex="1"
multiline="true"/>

XBL:
  <binding id="editorTextbox"
      extends="chrome://global/content/widgets/textbox.xml#textbox">
  <handlers>
     <handler event="keypress" keycode="VK_TAB"   
          action="event.preventDefault();"/>
  </handlers>

  </binding>
QA Contact: asa
resolving inactive 0.6 bugs
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.