{:uriI"Ófile:///Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee?type=application/javascript&pipeline=self&id=08b1aa19ac148bc703cb707f92b2c331396b711a96e5e43a9e3a89508b3ac380:ET:load_pathI"A/Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts;T: filenameI"c/Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee;T: nameI"alchemy/alchemy.hotkeys;T:logical_pathI"$alchemy/alchemy.hotkeys.self.js;T:content_typeI"application/javascript;T: sourceI"#(function() { if (typeof window.Alchemy === 'undefined') { window.Alchemy = {}; } Alchemy.bindedHotkeys = []; Alchemy.Hotkeys = function(scope) { var $search_fields, $search_fields_clear, hotkey, i, len, ref; if (!scope) { $(document).off('keypress'); ref = Alchemy.bindedHotkeys; for (i = 0, len = ref.length; i < len; i++) { hotkey = ref[i]; key.unbind(hotkey); } } $search_fields = $('#search_field, #search_input_field', scope); $search_fields_clear = $('.search_field_clear, .js_filter_field_clear', scope); key('alt+f', function() { key.setScope('search'); $search_fields.focus(); return false; }); Alchemy.bindedHotkeys.push('alt+f'); key('esc', 'search', function() { $search_fields_clear.click(); return $search_fields.blur(); }); Alchemy.bindedHotkeys.push('esc'); if (!scope) { $(document).on('keypress', function(e) { if (!$(e.target).is('input, textarea') && String.fromCharCode(e.which) === '?') { Alchemy.openDialog('/admin/help', { title: Alchemy.t('help'), size: '400x492' }); return false; } else { return true; } }); } return $('[data-alchemy-hotkey]', scope).each(function() { var $this; $this = $(this); hotkey = $this.data('alchemy-hotkey'); key(hotkey, function() { return $this.click(); }); return Alchemy.bindedHotkeys.push(hotkey); }); }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"qfile-digest:///Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%sa…\©Öo‰¢ñ짭 ¾µ 1 ['ÄazÊFTq: lengthi#:dependencies_digest"%mHÐÕ¨âºã¯RGîa§3è?$DÍØ_ÿWòfT0:idI"E08b1aa19ac148bc703cb707f92b2c331396b711a96e5e43a9e3a89508b3ac380;F: mtimel+üW