mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Fix hotkeys for edge browser control (#6344)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
426edc3721
commit
0fa7ba96b2
|
@ -1666,14 +1666,22 @@ Hotkeys.prototype.showHotkeys = function() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Hotkeys.prototype.getAllSapEventsForSapEventName = function(sSapEvent) {
|
Hotkeys.prototype.getAllSapEventsForSapEventName = function (sSapEvent) {
|
||||||
return [].slice.call(
|
if (/^#+$/.test(sSapEvent)){
|
||||||
document.querySelectorAll('a[href*="sapevent:' + sSapEvent + '"],'
|
// sSapEvent contains only #. Nothing sensible can be done here
|
||||||
+ 'a[href*="SAPEVENT:' + sSapEvent + '"],'
|
return [];
|
||||||
+ 'input[formaction*="sapevent:' + sSapEvent + '"],'
|
}
|
||||||
+ 'input[formaction*="SAPEVENT:' + sSapEvent + '"],'
|
|
||||||
+ 'form[action*="sapevent:' + sSapEvent + '"] input[type="submit"].main,'
|
var includesSapEvent = function(text){
|
||||||
+ 'form[action*="SAPEVENT:' + sSapEvent + '"] input[type="submit"].main'));
|
return (text.includes("sapevent") || text.includes("SAPEVENT"));
|
||||||
|
};
|
||||||
|
|
||||||
|
return [].slice
|
||||||
|
.call(document.querySelectorAll("a[href*="+ sSapEvent +"], input[formaction*="+ sSapEvent+"]"))
|
||||||
|
.filter(function (elem) {
|
||||||
|
return (elem.nodeName === "A" && includesSapEvent(elem.href)
|
||||||
|
|| (elem.nodeName === "INPUT" && includesSapEvent(elem.formAction)));
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Hotkeys.prototype.getSapEventHref = function(sSapEvent) {
|
Hotkeys.prototype.getSapEventHref = function(sSapEvent) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user