Commit 6aed1cea authored by Michal Čihař's avatar Michal Čihař

Make Alt+F toggle fuzzy flag

Instead of only disabling it. Also add it to the documentation.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent eb0e01e0
...@@ -98,6 +98,8 @@ While translating you can use following keyboard shortcuts: ...@@ -98,6 +98,8 @@ While translating you can use following keyboard shortcuts:
Shows nearby strings tab. Shows nearby strings tab.
:kbd:`Alt+S` :kbd:`Alt+S`
Shows search tab. Shows search tab.
:kbd:`Alt+F`
Toggles fuzzy flag.
Translation context Translation context
+++++++++++++++++++ +++++++++++++++++++
......
...@@ -576,7 +576,7 @@ $(function () { ...@@ -576,7 +576,7 @@ $(function () {
Mousetrap.bindGlobal('alt+pageup', function(e) {window.location = $('#button-prev').attr('href'); return false;}); Mousetrap.bindGlobal('alt+pageup', function(e) {window.location = $('#button-prev').attr('href'); return false;});
Mousetrap.bindGlobal('alt+home', function(e) {window.location = $('#button-first').attr('href'); return false;}); Mousetrap.bindGlobal('alt+home', function(e) {window.location = $('#button-first').attr('href'); return false;});
Mousetrap.bindGlobal('alt+v', function(e) {$('.translation-item .copy-text').click(); return false;}); Mousetrap.bindGlobal('alt+v', function(e) {$('.translation-item .copy-text').click(); return false;});
Mousetrap.bindGlobal('alt+f', function(e) {$('input[name="fuzzy"]').prop('checked', true); return false;}); Mousetrap.bindGlobal('alt+f', function(e) {$('input[name="fuzzy"]').click(); return false;});
Mousetrap.bindGlobal( Mousetrap.bindGlobal(
['ctrl+shift+enter', 'command+shift+enter'], ['ctrl+shift+enter', 'command+shift+enter'],
function(e) {$('input[name="fuzzy"]').prop('checked', false); return submitForm(e);} function(e) {$('input[name="fuzzy"]').prop('checked', false); return submitForm(e);}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment