- Introduced tests for mail templates including ranking, rendering, and attachment handling. - Added tests for time billing selection and approval processes, ensuring proper validation and state management. - Implemented tests for case types in JavaScript, focusing on loading and editing functionality. - Created tests for contact mail AI integration, ensuring proper parsing and error handling. - Developed tests for dark theme CSS contrast and loading order. - Added tests for invoice fee service, covering various scenarios including exemptions and invalid inputs. - Implemented vendor resource tests, ensuring proper file handling and query validation.
13 lines
672 B
JavaScript
13 lines
672 B
JavaScript
/* Bare minus opens standalone time; typing and modifier shortcuts are preserved. */
|
|
(()=>{'use strict';
|
|
function handle(event){
|
|
const target=event.target;
|
|
if(event.defaultPrevented||event.repeat||event.isComposing||event.key!=='-'||event.ctrlKey||event.metaKey||event.altKey||event.shiftKey)return;
|
|
if(target?.isContentEditable||target?.closest?.('input,textarea,select,[role="textbox"]')||document.querySelector('.modal.show,dialog[open]'))return;
|
|
event.preventDefault();
|
|
if(typeof window.openQuickTimeOnly==='function')window.openQuickTimeOnly();
|
|
else window.location.assign('/sag/new?quick_time=1');
|
|
}
|
|
document.addEventListener('keydown',handle);
|
|
})();
|