summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-02-16 11:31:06 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-02-16 11:43:24 -0500
commit7ed7722c274e38c97511481fdd68138e463cfbc4 (patch)
tree7ff427be533a8df5a99aac2ba06693c996620eba
parent65f50db38ac2b0680da24efdf8901442d2a73795 (diff)
Change category modifier for shortcuts
The modifier to change the focus of categories was Ctrl. It was changed to avoid interference with browser shortcuts. See #256
-rw-r--r--app/i18n/en.php2
-rw-r--r--app/i18n/fr.php2
-rw-r--r--p/scripts/main.js20
3 files changed, 12 insertions, 12 deletions
diff --git a/app/i18n/en.php b/app/i18n/en.php
index 790e853f5..932513588 100644
--- a/app/i18n/en.php
+++ b/app/i18n/en.php
@@ -80,7 +80,7 @@ return array (
'shortcuts_updated' => 'Shortcuts have been updated',
'shortcuts_management' => 'Shortcuts management',
'shortcuts_navigation' => 'Navigation',
- 'shortcuts_navigation_help' => 'With the "Shift" modifier, navigation shortcuts apply on feeds.<br/>With the "Ctrl" modifier, navigation shortcuts apply on categories.',
+ 'shortcuts_navigation_help' => 'With the "Shift" modifier, navigation shortcuts apply on feeds.<br/>With the "Alt" modifier, navigation shortcuts apply on categories.',
'shortcuts_article_action' => 'Article actions',
'shortcuts_other_action' => 'Other actions',
'feeds_marked_read' => 'Feeds have been marked as read',
diff --git a/app/i18n/fr.php b/app/i18n/fr.php
index 572bc1628..ab7843d12 100644
--- a/app/i18n/fr.php
+++ b/app/i18n/fr.php
@@ -80,7 +80,7 @@ return array (
'shortcuts_updated' => 'Les raccourcis ont été mis à jour',
'shortcuts_management' => 'Gestion des raccourcis',
'shortcuts_navigation' => 'Navigation',
- 'shortcuts_navigation_help' => 'Avec le modificateur "Shift", les raccourcis de navigation s’appliquent aux flux.<br/>Avec le modificateur "Ctrl", les raccourcis de navigation s’appliquent aux catégories.',
+ 'shortcuts_navigation_help' => 'Avec le modificateur "Shift", les raccourcis de navigation s’appliquent aux flux.<br/>Avec le modificateur "Alt", les raccourcis de navigation s’appliquent aux catégories.',
'shortcuts_article_action' => 'Actions associées à l’article courant',
'shortcuts_other_action' => 'Autres actions',
'feeds_marked_read' => 'Les flux ont été marqués comme lus',
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 130407f2c..bd8eb0b2b 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -322,10 +322,10 @@ function last_feed() {
}
function prev_category() {
- var active_cat = $("#aside_flux .category.active");
+ var active_cat = $("#aside_flux .category.stick.active");
if (active_cat.length > 0) {
- var prev_cat = active_cat.parent('li').prev().find('.category a.btn');
+ var prev_cat = active_cat.parent('li').prev().find('.category.stick a.btn');
if (prev_cat.length > 0) {
prev_cat[0].click();
}
@@ -336,10 +336,10 @@ function prev_category() {
}
function next_category() {
- var active_cat = $("#aside_flux .category.active");
+ var active_cat = $("#aside_flux .category.stick.active");
if (active_cat.length > 0) {
- var next_cat = active_cat.parent('li').next().find('.category a.btn');
+ var next_cat = active_cat.parent('li').next().find('.category.stick a.btn');
if (next_cat.length > 0) {
next_cat[0].click();
}
@@ -350,14 +350,14 @@ function next_category() {
}
function first_category() {
- var cat = $("#aside_flux .category:first");
+ var cat = $("#aside_flux .category.stick:first");
if (cat.length > 0) {
cat.find('a.btn')[0].click();
}
}
function last_category() {
- var cat = $("#aside_flux .category:last");
+ var cat = $("#aside_flux .category.stick:last");
if (cat.length > 0) {
cat.find('a.btn')[0].click();
}
@@ -577,16 +577,16 @@ function init_shortcuts() {
'disable_in_input': true
});
// Touches de navigation pour les categories
- shortcut.add("ctrl+" + shortcuts.prev_entry, prev_category, {
+ shortcut.add("alt+" + shortcuts.prev_entry, prev_category, {
'disable_in_input': true
});
- shortcut.add("ctrl+" + shortcuts.next_entry, next_category, {
+ shortcut.add("alt+" + shortcuts.next_entry, next_category, {
'disable_in_input': true
});
- shortcut.add("ctrl+" + shortcuts.first_entry, first_category, {
+ shortcut.add("alt+" + shortcuts.first_entry, first_category, {
'disable_in_input': true
});
- shortcut.add("ctrl+" + shortcuts.last_entry, last_category, {
+ shortcut.add("alt+" + shortcuts.last_entry, last_category, {
'disable_in_input': true
});