Skip to content

Commit 4923432

Browse files
committed
change handling of keystroke entries to be per-platform
1 parent 48b692f commit 4923432

15 files changed

Lines changed: 90 additions & 74 deletions

build/shared/lib/languages/PDE.properties

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ menu.edit.paste = Paste
4040
menu.edit.select_all = Select All
4141
menu.edit.auto_format = Auto Format
4242
menu.edit.comment_uncomment = Comment/Uncomment
43-
menu.edit.comment_uncomment.keystroke = meta pressed SLASH
44-
menu.edit.increase_indent = Increase Indent
45-
menu.edit.increase_indent.keystroke = meta pressed CLOSE_BRACKET
46-
menu.edit.decrease_indent = Decrease Indent
47-
menu.edit.decrease_indent.keystroke = meta pressed OPEN_BRACKET
43+
menu.edit.comment_uncomment.keystroke.macosx = meta pressed SLASH
44+
menu.edit.comment_uncomment.keystroke.windows = ctrl pressed SLASH
45+
menu.edit.comment_uncomment.keystroke.linux = ctrl pressed SLASH
46+
menu.edit.increase_indent = → Increase Indent
47+
menu.edit.increase_indent.keystroke.macosx = meta pressed CLOSE_BRACKET
48+
menu.edit.increase_indent.keystroke.windows = ctrl pressed CLOSE_BRACKET
49+
menu.edit.increase_indent.keystroke.linux = ctrl pressed CLOSE_BRACKET
50+
menu.edit.decrease_indent = ← Decrease Indent
51+
menu.edit.decrease_indent.keystroke.macosx = meta pressed OPEN_BRACKET
52+
menu.edit.decrease_indent.keystroke.windows = ctrl pressed OPEN_BRACKET
53+
menu.edit.decrease_indent.keystroke.linux = ctrl pressed OPEN_BRACKET
4854
menu.edit.find = Find...
4955
menu.edit.find_next = Find Next
5056
menu.edit.find_previous = Find Previous
@@ -80,11 +86,17 @@ menu.debug.toggle_breakpoint = Toggle Breakpoint
8086
# ---
8187
# used for both menus and toolbars
8288
menu.debug.step = Step
83-
menu.debug.step.keystroke = meta pressed J
89+
menu.debug.step.keystroke.macosx = meta pressed J
90+
menu.debug.step.keystroke.windows = ctrl pressed J
91+
menu.debug.step.keystroke.linux = ctrl pressed J
8492
menu.debug.step_into = Step Into
85-
menu.debug.step_into.keystroke = shift meta pressed J
93+
menu.debug.step_into.keystroke.macosx = shift meta pressed J
94+
menu.debug.step_into.keystroke.windows = shift ctrl pressed J
95+
menu.debug.step_into.keystroke.linux = shift ctrl pressed J
8696
menu.debug.step_out = Step Out
87-
menu.debug.step_out.keystroke = meta alt pressed J
97+
menu.debug.step_out.keystroke.macosx = meta alt pressed J
98+
menu.debug.step_out.keystroke.windows = ctrl alt pressed J
99+
menu.debug.step_out.keystroke.linux = ctrl alt pressed J
88100
menu.debug.continue = Continue
89101
# ---
90102
#menu.debug.print_stack_trace = Print Stack Trace
@@ -315,9 +327,13 @@ editor.header.new_tab = New Tab
315327
editor.header.rename = Rename
316328
editor.header.delete = Delete
317329
editor.header.previous_tab = Previous Tab
318-
editor.header.previous_tab.keystroke = meta alt pressed LEFT
330+
editor.header.previous_tab.keystroke.macosx = meta alt pressed LEFT
331+
editor.header.previous_tab.keystroke.windows = ctrl alt pressed LEFT
332+
editor.header.previous_tab.keystroke.linux = ctrl pressed PAGE_UP
319333
editor.header.next_tab = Next Tab
320-
editor.header.next_tab.keystroke = meta alt pressed RIGHT
334+
editor.header.next_tab.keystroke.macosx = meta alt pressed RIGHT
335+
editor.header.next_tab.keystroke.windows = ctrl alt pressed RIGHT
336+
editor.header.next_tab.keystroke.linux = ctrl pressed PAGE_DOWN
321337
editor.header.delete.warning.title = Yeah, no.
322338
editor.header.delete.warning.text = You cannot delete the main tab of the only open sketch.
323339

build/shared/lib/languages/PDE_ar.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = لصق
4040
menu.edit.select_all = تحديد الكل
4141
menu.edit.auto_format = فرمتة تلقائية
4242
menu.edit.comment_uncomment = تعليق/إلغاء التعليق
43-
menu.edit.increase_indent = زيادة المسافة البادئة
44-
menu.edit.decrease_indent = انقاص المسافة البادئة
43+
menu.edit.increase_indent = زيادة المسافة البادئة
44+
menu.edit.decrease_indent = انقاص المسافة البادئة
4545
menu.edit.find = بحث...
4646
menu.edit.find_next = النتيجة التالية
4747
menu.edit.find_previous = النتيجة السابقة
@@ -478,7 +478,7 @@ contrib.errors.description_unavailable = لا يوجد وصف.
478478
contrib.errors.malformed_url = الرابط الذي تم تحميله من Processing.org لا يعمل. \nبإمكانك تثبيت المكتبة بشكل يدوي عن طريق زيارة موقع المكتبة الإلكتروني.
479479
contrib.errors.needs_repackage = يجب إعادة حزم %s وفقاً لشروط %s.
480480
contrib.errors.no_contribution_found = تعذر العثور على %s في الملف المحمل.
481-
contrib.errors.overwriting_properties = .properties حصل خلل خلال استبدال محتوى ملف
481+
contrib.errors.overwriting_properties = .properties حصل خلل خلال استبدال محتوى ملف
482482
contrib.errors.install_failed = فشل التثبيت.
483483
contrib.errors.update_on_restart_failed = فشل تحديث %s بعد إعادة التشغيل.
484484
contrib.errors.temporary_directory = فشلت الكتابة في الملف المؤقت.

build/shared/lib/languages/PDE_de.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = Einfügen
4040
menu.edit.select_all = Alle auswählen
4141
menu.edit.auto_format = Autoformatierung
4242
menu.edit.comment_uncomment = Ein- und Auskommentieren
43-
menu.edit.increase_indent = Ausrücken
44-
menu.edit.decrease_indent = Einrücken
43+
menu.edit.increase_indent = Ausrücken
44+
menu.edit.decrease_indent = Einrücken
4545
menu.edit.find = Suchen ...
4646
menu.edit.find_next = Weiter suchen
4747
menu.edit.find_previous = Vorher suchen

build/shared/lib/languages/PDE_el.properties

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = Επικόλληση
4040
menu.edit.select_all = Επιλογή Όλων
4141
menu.edit.auto_format = Αυτόματη Μορφοποίηση
4242
menu.edit.comment_uncomment = Σχολιασμός/Αποσχολιασμός
43-
menu.edit.increase_indent = Αύξηση Εσοχής
44-
menu.edit.decrease_indent = Μείωση Εσοχής
43+
menu.edit.increase_indent = Αύξηση Εσοχής
44+
menu.edit.decrease_indent = Μείωση Εσοχής
4545
menu.edit.find = Αναζήτηση...
4646
menu.edit.find_next = Αναζήτηση Επόμενου
4747
menu.edit.find_previous = Αναζήτηση Προηγούμενου
@@ -215,7 +215,7 @@ export.tooltip.macosx = Η εξαγωγή Mac OS X είναι διαθέσιμη
215215
export.full_screen = Πλήρης Οθόνη
216216
export.embed_java = Ενσωματωμένη Java
217217
export.embed_java.for = Ενσωματωμένη Java για
218-
export.code_signing = Υπογραφή Κώδικα
218+
export.code_signing = Υπογραφή Κώδικα
219219

220220
# Find (Frame)
221221
find = Αναζήτηση
@@ -373,14 +373,14 @@ editor.footer.console = Κονσόλα
373373

374374
# New handler
375375
new.messages.is_read_only = Το Σχέδιο είναι Μόνο για Ανάγνωση
376-
new.messages.is_read_only.description = Μερικά αρχεία είναι σημειωμένα "Μόνο για Ανάγνωση", οπότε θα χρειαστεί να ξανα-αποθηκεύσεις το Σχέδιο σε διαφορετική θέση,\nκαι να προσπαθήσεις ξανά.
376+
new.messages.is_read_only.description = Μερικά αρχεία είναι σημειωμένα "Μόνο για Ανάγνωση", οπότε θα χρειαστεί να ξανα-αποθηκεύσεις το Σχέδιο σε διαφορετική θέση,\nκαι να προσπαθήσεις ξανά.
377377

378378
# Rename handler
379379
rename.messages.is_untitled = Το Σχέδιο Δεν έχει Τίτλο
380380
rename.messages.is_untitled.description = Τι θα έλεγες να αποθηκεύσεις το Σχέδιο\nπριν προσπαθήσεις να το μετονομάσεις;
381381
rename.messages.is_modified = Παρακαλώ αποθήκευσε το Σχέδιο πριν το μετονομάσεις.
382-
rename.messages.is_read_only = Το Σχέδιο είναι Μόνο για Ανάγνωση
383-
rename.messages.is_read_only.description = Μερικά αρχεία είναι σημειωμένα "Μόνο για Ανάγνωση", οπότε θα χρειαστεί να ξανα-αποθηκεύσεις το Σχέδιο σε διαφορετική θέση,\nκαι να προσπαθήσεις ξανά.
382+
rename.messages.is_read_only = Το Σχέδιο είναι Μόνο για Ανάγνωση
383+
rename.messages.is_read_only.description = Μερικά αρχεία είναι σημειωμένα "Μόνο για Ανάγνωση", οπότε θα χρειαστεί να ξανα-αποθηκεύσεις το Σχέδιο σε διαφορετική θέση,\nκαι να προσπαθήσεις ξανά.
384384

385385
# Delete handler
386386
delete.messages.cannot_delete = Αποτυχία Διαγραφής
@@ -409,7 +409,7 @@ contrib.show_only_compatible.library = Εμφάνιση Μόνο Συμβατώ
409409
contrib.show_only_compatible.examples = Εμφάνιση Μόνο Συμβατών Παραδειγμάτων
410410
contrib.show_only_compatible.update = Εμφάνιση Μόνο Συμβατών Ενημερώσεων
411411
contrib.restart = Επανεκκίνηση Processing
412-
contrib.unsaved_changes = Βρέθηκαν μη αποθηκευμένες ενημερώσεις
412+
contrib.unsaved_changes = Βρέθηκαν μη αποθηκευμένες ενημερώσεις
413413
contrib.unsaved_changes.prompt = Είσαι σίγουρος ότι θέλεις να κάνεις επανεκκίνηση της Processing χωρίς να αποθηκεύσεις τις αλλαγές;
414414
contrib.messages.remove_restart = Παρακαλώ κάνε επανεκκίνηση της Processing για να ολοκληρωθεί η αφαίρεση αυτού του αντικειμένου.
415415
contrib.messages.install_restart = Παρακαλώ κάνε επανεκκίνηση της Processing για να ολοκληρωθεί η εγκατάσταση αυτού του αντικειμένου.
@@ -445,7 +445,7 @@ contrib.category.animation = Animation
445445
contrib.category.data = Δεδομένα
446446
contrib.category.geometry = Γεωμετρία
447447
contrib.category.gui = GUI
448-
contrib.category.hardware = Υλικό
448+
contrib.category.hardware = Υλικό
449449
contrib.category.i_o = Ε/Ε
450450
contrib.category.math = Μαθηματικά
451451
contrib.category.simulation = Προσομοίωση

build/shared/lib/languages/PDE_es.properties

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = Pegar
4040
menu.edit.select_all = Seleccionar todo
4141
menu.edit.auto_format = Autoformato
4242
menu.edit.comment_uncomment = Comentar/Descomentar
43-
menu.edit.increase_indent = Aumentar indentación
44-
menu.edit.decrease_indent = Reducir indentación
43+
menu.edit.increase_indent = Aumentar indentación
44+
menu.edit.decrease_indent = Reducir indentación
4545
menu.edit.find = Buscar...
4646
menu.edit.find_next = Buscar siguiente
4747
menu.edit.find_previous = Buscar anterior
@@ -406,10 +406,10 @@ name.messages.invalid_extension.description = ".%s" no es una extensión válida
406406
name.messages.main_java_extension.description = La primera pestaña no puede ser un archivo .%s.\n(Puede que sea tiempo de graduarse\na un entorno de programación "real")
407407
name.messages.new_sketch_exists = No
408408
name.messages.new_sketch_exists.description = Un archivo llamado "%s" ya existe en\n"%s"
409-
name.messages.new_folder_exists = No se puede cambiar de nombre
409+
name.messages.new_folder_exists = No se puede cambiar de nombre
410410
name.messages.new_folder_exists.description = Un sketch (o directorio) con nombre "%s" ya existe.
411411
name.messages.error = Error
412-
name.messages.no_rename_folder.description = No se pudo renombrar el directorio del sketch.
412+
name.messages.no_rename_folder.description = No se pudo renombrar el directorio del sketch.
413413
name.messages.no_rename_file.description = No se pudo renombrar "%s" a "%s"
414414
name.messages.no_create_file.description = No se pudo crear el archivo "%s"\nen "%s"
415415

@@ -435,7 +435,7 @@ save_file.messages.recursive_save.description = No puedes guardar un sketch en u
435435
add_file.messages.is_read_only = El sketch es de sólo-lectura
436436
add_file.messages.is_read_only.description = Algunos archivos están marcados como de sólo-lectura, por\nlo que vas a tener que guardar el sketch en otra ubicación,\ne intentar de nuevo.
437437
add_file.messages.confirm_replace = ¿Reemplzara la versión existente de %s?
438-
add_file.messages.error_adding = Error al añadir el archivo
438+
add_file.messages.error_adding = Error al añadir el archivo
439439
add_file.messages.cannot_delete.description = No se pudo eliminar el archivo existente '%s'.
440440
add_file.messages.cannot_add.description = No se pudo añadir '%s' al sketch.
441441
add_file.messages.same_file = No puedes engañarme
@@ -505,17 +505,17 @@ contrib.unsupported_operating_system = Tu sistema operativo no está soportado.
505505
contrib.category.3d = 3D
506506
contrib.category.animation = Animación
507507
contrib.category.data = Datos
508-
contrib.category.geometry = Geometría
508+
contrib.category.geometry = Geometría
509509
contrib.category.gui = Interfaz gráfica
510-
contrib.category.hardware = Hardware
510+
contrib.category.hardware = Hardware
511511
contrib.category.i_o = Entrada/Salida
512512
contrib.category.math = Matemáticas
513513
contrib.category.simulation = Simulación
514-
contrib.category.sound = Sonido
515-
contrib.category.typography = Tipografía
516-
contrib.category.utilities = Utilidades
514+
contrib.category.sound = Sonido
515+
contrib.category.typography = Tipografía
516+
contrib.category.utilities = Utilidades
517517
contrib.category.video_vision = Visión de video
518-
contrib.category.other = Otros
518+
contrib.category.other = Otros
519519

520520
# Install on Startup
521521
contrib.startup.errors.download_install = Ocurrió un error al descargar e instalar %s

build/shared/lib/languages/PDE_fr.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = Coller
4040
menu.edit.select_all = Selectionner tout
4141
menu.edit.auto_format = Mise en forme automatique
4242
menu.edit.comment_uncomment = Commenter/Décommenter
43-
menu.edit.increase_indent = Augmenter l'indentation
44-
menu.edit.decrease_indent = Diminuer l'indentation
43+
menu.edit.increase_indent = Augmenter l'indentation
44+
menu.edit.decrease_indent = Diminuer l'indentation
4545
menu.edit.find = Rechercher...
4646
menu.edit.find_next = Rechercher suivant
4747
menu.edit.find_previous = Rechercher précédent

build/shared/lib/languages/PDE_it.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = Incolla
4040
menu.edit.select_all = Seleziona Tutto
4141
menu.edit.auto_format = Formattazione Automatica
4242
menu.edit.comment_uncomment = Commenta/Rimuovi commento
43-
menu.edit.increase_indent = Aumenta Indentazione
44-
menu.edit.decrease_indent = Diminuisci Indentazione
43+
menu.edit.increase_indent = Aumenta Indentazione
44+
menu.edit.decrease_indent = Diminuisci Indentazione
4545
menu.edit.find = Trova...
4646
menu.edit.find_next = Trova Successivo
4747
menu.edit.find_previous = Trova Puccessivo

build/shared/lib/languages/PDE_ja.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ menu.edit.paste = 貼り付け
4040
menu.edit.select_all = すべて選択
4141
menu.edit.auto_format = 自動フォーマット
4242
menu.edit.comment_uncomment = コメント/アンコメント
43-
menu.edit.increase_indent = インデントを増やす
44-
menu.edit.decrease_indent = インデントを減らす
43+
menu.edit.increase_indent = インデントを増やす
44+
menu.edit.decrease_indent = インデントを減らす
4545
menu.edit.find = 検索...
4646
menu.edit.find_next = 次を探す
4747
menu.edit.find_previous = 前を探す

0 commit comments

Comments
 (0)