Open Bug 433971 Opened 16 years ago Updated 2 years ago

[Mac] Emacs shortcuts parity: Ctrl-o should insert newline in front of cursor

Categories

(Core :: Widget: Cocoa, defect, P3)

PowerPC
macOS
defect

Tracking

()

People

(Reporter: nfagerlund, Unassigned)

References

Details

(Whiteboard: tpi:+)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008051504 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008051504 Minefield/3.0pre

In a standard Cocoa text view, ctrl-o inserts a line break in *front* of the cursor. Firefox for Mac doesn't implement this in its text fields yet. If parity with the native emacs shortcuts is desirable, this is one of the steps to get there. 

Reproducible: Always

Steps to Reproduce:
Position cursor before some text in a text box. Press ctrl-o.
Actual Results:  
Nothing.

Expected Results:  
Cursor stays on same line, all text after cursor is pushed down to the next line. (Try this in TextEdit for comparison.)
Depends on: 229473
Version: unspecified → Trunk
Not an XBL bug.

Over to widget, but this might need some editor work instead.  I'm not sure how we hook these up on Mac.
Assignee: nobody → joshmoz
Status: UNCONFIRMED → NEW
Component: XBL → Widget: Cocoa
Ever confirmed: true
QA Contact: xbl → cocoa
(In reply to comment #1)
> Over to widget, but this might need some editor work instead.  I'm not sure how
> we hook these up on Mac.

Some of them are hooked up simply by adding bindings stuff in content/xbl/builtin/mac/platformHTMLBindings.xml (like bug 229473), but apparently not all keybindings magically work when doing that (bug 420669 comment 2).

(Note also bug 282097 which, if I've understood Boris right and if properly implemented, would remove the need for all this hard-coding.)
Yeah, that bug is what I wasn't sure about us having implemented on Mac.  We should just do it and avoid the whack-a-mole.  ;)
Assignee: joshmoz → nobody
Today, control-O in Firefox moves the cursor back one character, just like control-B does.

I can't tell if that was intentional.
Priority: -- → P2
Whiteboard: tpi:+
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.