added shortcuts
diff --git a/startup/startup.js b/startup/startup.js
index 9a6a526..90f284e 100644
--- a/startup/startup.js
+++ b/startup/startup.js
@@ -195,3 +195,19 @@
}
}
}
+
+Mousetrap.bind(["command+g", "ctrl+g"], function() {
+ wn.ui.toolbar.search.show();
+ return false;
+});
+
+Mousetrap.bind(["command+s", "ctrl+s"], function() {
+ if(cur_frm)
+ cur_frm.save();
+ return false;
+});
+
+Mousetrap.bind(["command+n", "ctrl+n"], function() {
+ wn.ui.toolbar.new_dialog.show();
+ return false;
+});
\ No newline at end of file
diff --git a/website/doctype/style_settings/style_settings.js b/website/doctype/style_settings/style_settings.js
index 0d0bf9e..54091a3 100644
--- a/website/doctype/style_settings/style_settings.js
+++ b/website/doctype/style_settings/style_settings.js
@@ -14,9 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-wn.require('lib/js/lib/jscolor/jscolor.js');
cur_frm.cscript.onload_post_render = function() {
+ wn.require('lib/public/js/lib/jscolor/jscolor.js');
cur_frm.fields_dict.background_color.input.className = 'color';
jscolor.bind();
}
\ No newline at end of file