Dont override arrow keys

This commit is contained in:
seaweedchan 2013-05-25 23:17:09 -07:00
parent f2594944e4
commit 2c087f1b8d
5 changed files with 36 additions and 16 deletions

View File

@ -282,11 +282,11 @@
'fappeTyme': ['f', 'Fappe Tyme.'],
'Front page': ['0', 'Jump to page 0.'],
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
'Next page': ['Right', 'Jump to the next page.'],
'Previous page': ['Left', 'Jump to the previous page.'],
'Next page': ['Shift+Right', 'Jump to the next page.'],
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
'Next thread': ['Down', 'See next thread.'],
'Previous thread': ['Up', 'See previous thread.'],
'Next thread': ['Shift+Down', 'See next thread.'],
'Previous thread': ['Shift+Up', 'See previous thread.'],
'Expand thread': ['Ctrl+e', 'Expand thread.'],
'Open thread': ['o', 'Open thread in current tab.'],
'Open thread tab': ['Shift+o', 'Open thread in new tab.'],
@ -8828,11 +8828,17 @@
$.open("/" + g.BOARD + "/#delform");
break;
case Conf['Next page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.next form')) {
window.location = form.action;
}
break;
case Conf['Previous page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.prev form')) {
window.location = form.action;
}

View File

@ -283,11 +283,11 @@
'fappeTyme': ['f', 'Fappe Tyme.'],
'Front page': ['0', 'Jump to page 0.'],
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
'Next page': ['Right', 'Jump to the next page.'],
'Previous page': ['Left', 'Jump to the previous page.'],
'Next page': ['Shift+Right', 'Jump to the next page.'],
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
'Next thread': ['Down', 'See next thread.'],
'Previous thread': ['Up', 'See previous thread.'],
'Next thread': ['Shift+Down', 'See next thread.'],
'Previous thread': ['Shift+Up', 'See previous thread.'],
'Expand thread': ['Ctrl+e', 'Expand thread.'],
'Open thread': ['o', 'Open thread in current tab.'],
'Open thread tab': ['Shift+o', 'Open thread in new tab.'],
@ -8837,11 +8837,17 @@
$.open("/" + g.BOARD + "/#delform");
break;
case Conf['Next page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.next form')) {
window.location = form.action;
}
break;
case Conf['Previous page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.prev form')) {
window.location = form.action;
}

View File

@ -264,11 +264,11 @@
'fappeTyme': ['f', 'Fappe Tyme.'],
'Front page': ['0', 'Jump to page 0.'],
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
'Next page': ['Right', 'Jump to the next page.'],
'Previous page': ['Left', 'Jump to the previous page.'],
'Next page': ['Shift+Right', 'Jump to the next page.'],
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
'Next thread': ['Down', 'See next thread.'],
'Previous thread': ['Up', 'See previous thread.'],
'Next thread': ['Shift+Down', 'See next thread.'],
'Previous thread': ['Shift+Up', 'See previous thread.'],
'Expand thread': ['Ctrl+e', 'Expand thread.'],
'Open thread': ['o', 'Open thread in current tab.'],
'Open thread tab': ['Shift+o', 'Open thread in new tab.'],
@ -8820,11 +8820,17 @@
$.open("/" + g.BOARD + "/#delform");
break;
case Conf['Next page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.next form')) {
window.location = form.action;
}
break;
case Conf['Previous page']:
if (g.VIEW === 'thread') {
return;
}
if (form = $('.prev form')) {
window.location = form.action;
}

View File

@ -567,11 +567,11 @@ http://iqdb.org/?url=%TURL
'Open page 0 in a new tab.'
]
'Next page': [
'Right'
'Shift+Right'
'Jump to the next page.'
]
'Previous page': [
'Left'
'Shift+Left'
'Jump to the previous page.'
]
'Open catalog': [
@ -580,11 +580,11 @@ http://iqdb.org/?url=%TURL
]
# Thread Navigation
'Next thread': [
'Down'
'Shift+Down'
'See next thread.'
]
'Previous thread': [
'Up'
'Shift+Up'
'See previous thread.'
]
'Expand thread': [

View File

@ -81,9 +81,11 @@ Keybinds =
when Conf['Open front page']
$.open "/#{g.BOARD}/#delform"
when Conf['Next page']
return if g.VIEW is 'thread'
if form = $ '.next form'
window.location = form.action
when Conf['Previous page']
return if g.VIEW is 'thread'
if form = $ '.prev form'
window.location = form.action
when Conf['Open catalog']