mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Potentially support cmd+P on macOS for printing events
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).keydown(function(e) {
|
$(document).keydown(function(e) {
|
||||||
if (e.ctrlKey && e.keyCode == 80) {
|
if ((e.ctrlKey || e.metaKey) && e.keyCode == 80) {
|
||||||
window.open("{% url 'event_print' object.pk %}", '_blank');
|
window.open("{% url 'event_print' object.pk %}", '_blank');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user