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

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
15 years ago
14 years ago

People

(Reporter: mark bokil, Assigned: Blake Ross)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
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>

Updated

15 years ago
QA Contact: asa

Comment 1

14 years ago
resolving inactive 0.6 bugs
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.