From: enrica@apple.com Date: Fri, 2 May 2014 01:40:13 +0000 (+0000) Subject: REGRESSION (WebKit2) Need to support Learn button. X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=fba3df5f9ce5e218fe31d54a3c508dd82df2b83c;hp=fba3df5f9ce5e218fe31d54a3c508dd82df2b83c REGRESSION (WebKit2) Need to support Learn button. https://bugs.webkit.org/show_bug.cgi?id=132454 Reviewed by Benjamin Poulain. For traditional Chinese we support the ability to add shortcuts for typing. This is done by pressing the Learn button on the system menu. This patch adds the necessary code to canPerformAction to enable the button when appropriate as well as the implementation of the action itself. It also adds a check for the Replace button not to be shown when the selection only contains CJ characters. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _addShortcut:]): (-[WKContentView canPerformAction:withSender:]): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168142 268f45cc-cd09-0410-ab3c-d52691b4dbfc ---