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

View File

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

View File

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

View File

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

View File

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