blockly > IKeyboardAccessible > onShortcut
متد IKeyboardAccessible.onShortcut().
میانبر صفحه کلید داده شده را کنترل می کند.
امضا:
onShortcut(shortcut: KeyboardShortcut): boolean;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
میانبر | میانبر صفحه کلید | میانبری که باید به کار گرفته شود. |
برمیگرداند:
بولی
درست است اگر میانبر مدیریت شده باشد، در غیر این صورت نادرست است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `onShortcut` method in `IKeyboardAccessible` interface handles keyboard shortcuts."],["This method receives a `KeyboardShortcut` object and determines if the action was handled, returning `true` if so and `false` otherwise."]]],["The `onShortcut` method, part of the `IKeyboardAccessible` interface, handles keyboard shortcuts. It accepts a `KeyboardShortcut` object as input. The method's purpose is to determine if a given shortcut has been processed. It returns a boolean value: `true` if the shortcut was handled, and `false` if it was not. The input parameter, `shortcut`, provides details on which keyboard shortcut to evaluate.\n"]]