projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110ce6d
)
Escape
author
Jack Allnutt
<m2ys4u@Gmail.com>
Wed, 27 Jul 2011 01:38:08 +0000
(
02:38
+0100)
committer
Jack Allnutt
<m2ys4u@Gmail.com>
Wed, 27 Jul 2011 01:38:08 +0000
(
02:38
+0100)
js/front.js
patch
|
blob
|
blame
|
history
diff --git
a/js/front.js
b/js/front.js
index 4880cef8f85310705194484cee5833bd0ae5aa05..3cec34706fd0ea2c14187a72e97b7bd23a5b222e 100644
(file)
--- a/
js/front.js
+++ b/
js/front.js
@@
-107,9
+107,14
@@
var front = {
$('.cur_topic').live('keypress', function(e) {
if (e.keyCode === 13) {
+ // enter
e.preventDefault();
$(this).change();
$('#kiwi_msginput').focus();
+ } else if (e.keyCode === 27) {
+ // escape
+ e.preventDefault();
+ $(this).text(front.original_topic);
}
});
$('.cur_topic').live('change', function (e) {