ajaxorg/ace — Issue #541: undo is inconsistent with OS standard behavior
Author: comex
Created: 2011-11-30 11:30:30+00:00
State: open

To reproduce, type a sentence and invoke undo. In all the text fields I tested on OS X and Windows (except, oddly enough, for TextEdit.app, but including vim), the whole sentence is removed. This makes it easy to start over with new text, and I've come to instinctively expect this behavior. In Ace, the number of characters deleted depends on the typing speed, but is usually one per undo, which is way too slow.

Since Ace looks like a browser text field, it should avoid surprising the user and use the former behavior - treating an arbitrarily long insert as a single action for undo.