संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > फ़ील्ड > onShortcut
फ़ील्ड.onShortcut() तरीका
दिए गए कीबोर्ड शॉर्टकट को हैंडल करता है.
हस्ताक्षर:
onShortcut(_shortcut: KeyboardShortcut): boolean;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
_शॉर्टकट |
KeyboardShortcut |
इस्तेमाल किया जाने वाला शॉर्टकट. |
लौटाए जाने वाले प्रॉडक्ट:
बूलियन
अगर शॉर्टकट को हैंडल किया गया है, तो सही है. अगर ऐसा नहीं है, तो गलत है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `onShortcut` method, part of the `Field` class, processes keyboard shortcuts. It accepts a `KeyboardShortcut` as input. The method's core function is to determine if a given shortcut is relevant to a particular field. It returns a boolean value: `true` if the shortcut was handled by the field, and `false` if the shortcut was not handled, implying that other parts of the program can potentially handle it.\n"]]