[Webkit-unassigned] [Bug 92040] Delete text from password does nothing, proposed fix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 1 06:11:08 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92040





--- Comment #14 from Ryosuke Niwa <rniwa at webkit.org>  2012-08-01 06:11:08 PST ---
(In reply to comment #13)
> In the blackberry port, we encountered the same issue.
> 
> Our solution which has been working well is
> 
> diff --git a/Source/WebCore/editing/EditorCommand.cpp b/Source/WebCore/editing/EditorCommand.cpp
> index a2f147e..bc637c8 100644
> --- a/Source/WebCore/editing/EditorCommand.cpp
> +++ b/Source/WebCore/editing/EditorCommand.cpp
> @@ -1234,8 +1234,7 @@ static bool enabledDelete(Frame* frame, Event* event, EditorCommandSource source
>  {
>      switch (source) {
>      case CommandFromMenuOrKeyBinding:
> -        // "Delete" from menu only affects selected range, just like Cut but without affecting pasteboard
> -        return enabledCut(frame, event, source);
> +        return frame->editor()->canDelete();
>      case CommandFromDOM:
>      case CommandFromDOMWithUserInterface:
>          // "Delete" from DOM is like delete/backspace keypress, affects selected range if non-empty,

That's exactly what I've suggested in the comment #12 :)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list