310 topItem != origTopItem: |
310 topItem != origTopItem: |
311 continue |
311 continue |
312 |
312 |
313 # 3. check key name |
313 # 3. check key name |
314 if itm.text(0) != keyname: |
314 if itm.text(0) != keyname: |
315 for col in [1, 2]: # check against primary, |
315 for col in [1, 2]: |
316 # then alternative binding |
316 # check against primary, then alternative binding |
317 itmseq = itm.text(col) |
317 itmseq = itm.text(col) |
318 # step 1: check if shortcut is already allocated |
318 # step 1: check if shortcut is already allocated |
319 if keystr == itmseq: |
319 if keystr == itmseq: |
320 res = E5MessageBox.yesNo( |
320 res = E5MessageBox.yesNo( |
321 self, |
321 self, |