summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSam Hegarty <hegarty.sam@gmail.com>2014-10-18 13:09:55 +1300
committerSam Hegarty <hegarty.sam@gmail.com>2014-10-18 13:09:55 +1300
commitae6ff6f7b80a48a3f24e561748a2a1ec8dc5cedd (patch)
tree7244a0d55b60db0c56da8fe2a5b11cad8fe8bc0b /data
parent362c67449b8d8ef877efd1576603b4e835609fee (diff)
downloadmidori-ae6ff6f7b80a48a3f24e561748a2a1ec8dc5cedd.tar.gz
pressing escape now cancels editing title
Diffstat (limited to 'data')
-rw-r--r--data/speeddial-head.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index c42141e6..301215f6 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -136,6 +136,11 @@
function input_lose_focus (ev) {
// 13 is the key code for enter
if(ev.keyCode == 13) ev.target.blur();
+ // 27 is the key code for escape
+ if(ev.keyCode == 27) {
+ ev.target.value = previousName;
+ ev.target.blur();
+ }
}
function add_tile (ev) {