summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-02-18 08:30:16 +0100
committerAndrew Dolgov <[email protected]>2007-02-18 08:30:16 +0100
commit583c58b86d199db8ccf13769175f64accd5bea38 (patch)
treea18af675a4108f97cd0afcace8a18b393b039467 /functions.js
parent5d8ddfed754b4aeb165eb52d88895c23f3326fa1 (diff)
disable n/p down/up hotkeys for Safari - bugs
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 7000c585e..95dceb054 100644
--- a/functions.js
+++ b/functions.js
@@ -11,6 +11,14 @@ function is_opera() {
return navigator.userAgent.match("Opera");
}
+function is_khtml() {
+ return navigator.userAgent.match("KHTML");
+}
+
+function is_safari() {
+ return navigator.userAgent.match("Safari");
+}
+
function exception_error(location, e, silent) {
var msg;
@@ -214,13 +222,13 @@ function hotkey_handler(e) {
if (new_feed) viewfeed(new_feed, '');
}
- if (keycode == 78 || keycode == 40) { // n, down
+ if (!is_safari() && (keycode == 78 || keycode == 40)) { // n, down
if (typeof moveToPost != 'undefined') {
return moveToPost('next');
}
}
- if (keycode == 80 || keycode == 38) { // p, up
+ if (!is_safari() && (keycode == 80 || keycode == 38)) { // p, up
if (typeof moveToPost != 'undefined') {
return moveToPost('prev');
}