mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 03:44:58 +00:00
Fixed: browser shortcuts wouldn't work when a token field was active.
We now leave the default propagation policy of Cappuccino in place, which normally is NO for regular characters but YES for things which could be shortcuts.
This commit is contained in:
1 parent
44b609f604
commit
2200e40001
1 file changed
+4
-4
@@ -856,10 +856,10 @@ var CPScrollDestinationNone = 0,
|
||||
{
|
||||
CPTokenFieldTextDidChangeValue = [self stringValue];
|
||||
|
||||
// By default, don't allow the HTML input field to receive the characters. We'll only
|
||||
// allow that if we're not doing anything special with the characters and the editor
|
||||
// is active.
|
||||
[[[self window] platformWindow] _propagateCurrentDOMEvent:NO];
|
||||
// Leave the default _propagateCurrentDOMEvent setting in place. This might be YES or NO depending
|
||||
// on if something that could be a browser shortcut was pressed or not, such as Cmd-R to reload.
|
||||
// If it was NO we want to leave it at NO however and only enable it in insertText:. This is what
|
||||
// allows a subclass to prevent characters from being inserted by overriding and not calling super.
|
||||
|
||||
[self interpretKeyEvents:[anEvent]];
|
||||
|
||||
|
||||
Reference in new issue
Block a user