Title: [115785] trunk/Source/WebCore
Revision
115785
Author
[email protected]
Date
2012-05-01 20:27:06 -0700 (Tue, 01 May 2012)

Log Message

Calendar Picker: Close the picker by ESC key
https://bugs.webkit.org/show_bug.cgi?id=85337

Reviewed by Kentaro Hara.

No new tests. Calendar picker is not testable in DRT yet.

* Resources/calendarPicker.js:
(handleGlobalKey): Close the popup by ESC key.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (115784 => 115785)


--- trunk/Source/WebCore/ChangeLog	2012-05-02 03:20:30 UTC (rev 115784)
+++ trunk/Source/WebCore/ChangeLog	2012-05-02 03:27:06 UTC (rev 115785)
@@ -1,3 +1,15 @@
+2012-05-01  Kent Tamura  <[email protected]>
+
+        Calendar Picker: Close the picker by ESC key
+        https://bugs.webkit.org/show_bug.cgi?id=85337
+
+        Reviewed by Kentaro Hara.
+
+        No new tests. Calendar picker is not testable in DRT yet.
+
+        * Resources/calendarPicker.js:
+        (handleGlobalKey): Close the popup by ESC key.
+
 2012-05-01  Noel Gordon  <[email protected]>
 
         PNGImageDecoder: Handle interlace buffer allocation failure

Modified: trunk/Source/WebCore/Resources/calendarPicker.js (115784 => 115785)


--- trunk/Source/WebCore/Resources/calendarPicker.js	2012-05-02 03:20:30 UTC (rev 115784)
+++ trunk/Source/WebCore/Resources/calendarPicker.js	2012-05-02 03:27:06 UTC (rev 115785)
@@ -1109,7 +1109,8 @@
         global.yearMonthController.moveRelatively(event.shiftKey ? YearMonthController.PreviousYear : YearMonthController.NextYear);
     } else if (key == "U+0044") { // 'd'
         global.yearMonthController.moveRelatively(event.shiftKey ? YearMonthController.PreviousTenYears : YearMonthController.NextTenYears);
-    }
+    } else if (key == "U+001B") // ESC
+        handleCancel();
 }
 
 function maybeUpdateFocusStyle() {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to