แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ช่อง > onShortcut
เมธอด Field.onทางลัด()
จัดการแป้นพิมพ์ลัดที่ระบุ
ลายเซ็น:
onShortcut(_shortcut: KeyboardShortcut): boolean;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
_ทางลัด |
KeyboardShortcut |
ทางลัดที่ต้องจัดการ |
การคืนสินค้า:
boolean
จริง หากจัดการทางลัดแล้ว เป็นเท็จ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-11 UTC
[null,null,["อัปเดตล่าสุด 2024-10-11 UTC"],[[["The `onShortcut` method in Blockly's Field class determines how a field responds to a specific keyboard shortcut."],["It takes a `KeyboardShortcut` object as input, representing the triggered shortcut."],["If the method successfully processes the shortcut, it returns `true`; otherwise, it returns `false`."]]],["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"]]